[CentOS] Changing Host Name

Simon Matter simon.matter at invoca.ch
Fri Jul 8 07:15:07 UTC 2011

> Hi John,
> You have to also change this file
> /etc/sysconfig/network
> in the HOSTNAME field change it to your desired name

And if you configure interfaces using DHCP, you may also check
/etc/sysconfig/network-scripts/ifcfg-eth? for DHCP_HOSTNAME (or something
similar) and change it.


More information about the CentOS mailing list