Linux – CentOS 6.0 Server hostname changes at reboot

centoshostnamelinux

Every time I boot, CentOS 6.0 Server hostname disappears. I have to re-issue hostname command to reset it.

Please help!

Best Answer

you need to set your host name properly in /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=localhost
DOMAIN=localdomain
GATEWAY=yourgatewayaddress