Which file and directory contains the host name?
Tom Horsley
horsley1953 at gmail.com
Sat Nov 20 12:34:15 UTC 2010
On Sat, 20 Nov 2010 05:51:16 -0600
Robert G. (Doc) Savage wrote:
> I think you are looking for /etc/sysconfig/network, specifically the
> HOSTNAME= line. This can be edited by root, or altered by root using the
> hostname command. The host and domain names may also have been added to
> your local /etc/hosts file.
One other place a hostname might appear:
/etc/sysconfig/network-scripts/igcfg-eth0
(or eth1, eth2, etc). If the interface is
configured for DHCP, there might be a
DHCP_HOSTNAME defined.
More information about the users
mailing list