Host-name Configuration Options in Linux

Back

During the boot process, the network services looks to the /etc/sysconfig/network file to define the value of the local host-name. It's okay if that host-name is set as a FQDN like tester1.example.com. As configured earlier, it's a simple file, where the host-name may be documented with a directive like the following.

HOSTNAME = tester1.example.com

You can change the value of the hostname with the hostname newname command.