Help - Search - Members - Calendar
Full Version: Changing The Hostname
Linuxhelp > Support > Technical Support
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.

Try typing:

hostname blahblahblah

as root.
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: localhost new_hostname new_hostname.domain

if the pc has a static address, add an additional line like this right after the localhost line: 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.
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-2018 Invision Power Services, Inc.