LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   I feel retarted (https://www.linuxquestions.org/questions/mandriva-30/i-feel-retarted-165456/)

spuppett 04-02-2004 02:33 PM

I feel retarted
 
I want to change the name of my linux box. Right now it is the big ugly dhcp string. I've asked how to do it before and got it to work, but of course couldn't find the tread again.

I want to change it permenatly, so #hostname isn't the answer. my /etc/hosts file only has one line and I don't really feel too comfertable changing it unless i need to. /etc/sysconifig only has one line that says 'NETWORKING=yes'.

Any thing would be much appreciated.

acid_kewpie 04-02-2004 03:05 PM

Code:

[root@simon chris]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=simon


Dr. Ephemeron 04-02-2004 05:28 PM

If using dhcp, you should also add DHCP_HOSTNAME = your_name in the network file.

Not that it won't work without it, but for example my router shows that UNKNOWN is connected unless I use that.

qizzer 04-02-2004 11:01 PM

/etc/sysconfig/network-scripts/ifcfg-eth0

NEEDHOSTNAME=no


All times are GMT -5. The time now is 08:18 PM.