LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hostname (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-83289/)

guyd 08-18-2003 07:26 PM

hostname
 
I am trying to change the hostname on my Mandrake 9.1 Linux installation. I thought the hostname file was located at /etc/hostname and that I could edit it with vi.

One problem is that I can't find the hostname file. There may be other problems that I don't know about.

Any help?

martinman 08-18-2003 08:01 PM

/etc/sysconfig/network

it's in there

devershetty 08-18-2003 08:01 PM

Hi Guyd

i am not sure about Mandrake distro, but i could edit /etc/hosts file in RH7.2 and enter IP address and hostname of my choice.
I hope u can find similar /etc/hosts file in Mandrake.

DrOzz 08-18-2003 08:02 PM

/etc/hosts
/etc/sysconfig/network

DrOzz 08-18-2003 08:02 PM

lol 3 posts at the same time :D

martinman 08-18-2003 09:07 PM

my bad, you set the hostname in /etc/sysconfig/network, then add an entry to /etc/hosts


All times are GMT -5. The time now is 12:01 PM.