Help - Search - Members - Calendar
Full Version: Changing The Hostname
Linuxhelp > Support > Technical Support
Penguin666
I am jumping from Redhat to Mandrake 9.2
there used to be a file /etc/hostname where you could enter in the HOSTNAME for the computer.

I do not see this in Mandrake 9.2

What file do you use to rename the HOSTNAME? I don't want to do it through the GUI.

thanks
P666
Joey
Try typing:

hostname blahblahblah

as root.
hughesjr
also make sure to add the hostname in the /etc/hosts file...

If the computer is using dhcp, add the hostname to the localhost line like this:

127.0.0.1 localhost new_hostname new_hostname.domain

if the pc has a static address, add an additional line like this right after the localhost line:

127.0.0.1 localhost
aaa.bbb.ccc.ddd new_hostname new_hostname.domain

(aaa.bbb.ccc.ddd is the static IP address ... new_hostname is the computer's name (ie. fred)... new_hostname.domain is the Fully Qualified domain name of the PC (if it has one, ie. fred.mydomain.com).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.