Which file and directory contains the host name?

Robert G. (Doc) Savage dsavage at peaknet.net
Sat Nov 20 11:51:16 UTC 2010


On Sat, 2010-11-20 at 19:39 +0800, David Nelson wrote:
> Hi, :-)
> 
> Which file and directory contains the host name (on an FC12 VPS)?
> 
> Is it enough just to edit the domain name in that file or do I need to
> do something else?
> 
> TIA for any answer. :-)

David,

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.

--Doc Savage
  Fairview Heights, IL



More information about the users mailing list