Changing the Hostname
Give your Linux box a new computername (RH 7.1)
Posted 20.12.2001 | Updated 23.05.2006 | Contributed by Andy Mallett


The default name for a RH Linux install is 'localhost' and the default domain is 'localdomain'. This can easily be modified to a chosen machine and domain name.

To modify the localhost name in Linux, edit the network file..

vi /etc/sysconfig/network

Change the default localhost.localdomain to the desired details,
i.e. linuxbox.myworkgroup

Save and exit. The new details will be used on booting the system.