Ok, I have one more thing to add to the list. I did this on a PCLinux box and it's working for me.
I edited the /etc/sysconfig/network to look like this...
Code:
NETWORKING=yes
HOSTNAME=sony.mydomain.com
I edited the /etc/sysconfig/network-scripts/ifcfg-eth0 to add
NEEDHOSTNAME=no
DHCP_HOSTNAME=sony.mydomain.com
This is what mine looks like, yours may be slightly different.
Code:
DEVICE=eth0
BOOTPROTO=dhcp
IPADDR=192.168.1.2
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
NETMASK=255.255.255.0
IPADDR=192.168.1.2
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
DHCP_HOSTNAME=sony.mydomain.com
PEERDNS=yes
PEERYP=no
PEERNTPD=no
I ran the command:
hostname sony
I added sony to the /etc/hosts file.
Code:
127.0.0.1 localhost
192.168.0.5 sony.mydomain.com sony
Note: You may want to use 127.0.0.1 instead of the address I use which is 192.168.0.5 .
This is what I get after restarting.
[root@sony ~]#