LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-18-2003, 04:14 PM   #1
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Rep: Reputation: 30
changing Localhost.localdomain


Hello,
I am running Rehat 7.3 with a KDE desktop. I need to know how to change the Localhost.localdomain to what I want it to say.

Thanks
Mike
 
Old 08-18-2003, 04:18 PM   #2
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Edit the /etc/sysconfig/network file.
Add your new hostname on the HOSTNAME line.

You will have to restart the Network service and fully logout in order for the changes to take effect.
 
Old 08-18-2003, 04:21 PM   #3
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
Or just type this in the command line :
Code:
hostname new_hostname
 
Old 08-18-2003, 04:22 PM   #4
MacKtheHacK
Member
 
Registered: Jul 2003
Location: Boston, MA, USA
Distribution: RedHat, SuSE, Gentoo, Slackware, Mandrake ...
Posts: 111

Rep: Reputation: 15
You can also do this using KDE's desktop tools. Select System Settings->Network from the system menu at the left of the tool panel, and select the DNS tab in there. You can enter your host name and domain name there, along with the DNS server IP addresses.
 
Old 08-18-2003, 04:26 PM   #5
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
thank you,

MactheHack, I saw that same thing in someone else's thread and tried looking, I cant find it anywhere

Mike
 
Old 08-18-2003, 05:41 PM   #6
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
Brother Michael,

try using search option, becouse this question has been asked and answered many times.

Oh, and besides /etc/sysconfig/network (which is RH specific) you will have to add a line in your /etc/hosts

Enjoy
 
Old 08-18-2003, 10:01 PM   #7
Brother Michael
Member
 
Registered: Aug 2003
Location: Columbus, Ohio
Distribution: Debian
Posts: 284

Original Poster
Rep: Reputation: 30
yea I'm sorry, I figured it had been. I didn't mean to beat a dead horse here. I will do that in the future.

Thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
localhost name localdomain name assyrian1 Linux - Newbie 9 07-05-2005 05:17 AM
changing localhost.localdomain results in error DeltaXFX Linux - Networking 4 06-20-2005 08:09 AM
localhost.localdomain RJEmery Linux - Newbie 21 05-30-2005 04:59 PM
localhost.localdomain d1ny3 Mandriva 2 04-17-2004 09:27 PM
Changing localhost@localdomain??? TMMO Linux - Networking 2 08-11-2003 12:52 AM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration