Click to See Complete Forum and Search --> : how to set hostname


waxmop
11-02-2001, 04:12 PM
After a default redhat 7.1 install, my hostname is set to:

localhost.localdomain

how do i change this? i've used the "hostname" command as root, and the new name lasts until i reboot. then it dissapears.

i used linuxconf to set it, but when i call up some programs, they still think my host is localhost.

anybody know of a good place for a total network newbie start learning?

mangeli
11-02-2001, 04:43 PM
Edit the /etc/hosts and /etc/HOSTNAME files.

Or run netconfig at the command line.

waxmop
11-02-2001, 04:52 PM
thanks for the help. i've tried editing /etc/hosts. here's what's in there now:

127.0.0.1 localhost.localdomain localhost
192.168.1.1 frank

and frank is the hostname.

am i editing it wrong?

mangeli
11-02-2001, 05:12 PM
Put frank on the end of the 127. line as well. Also, you do need to edit the /etc/HOSTNAME file.