local host name changing

Robert Locke rlocke at ralii.com
Sat Sep 11 19:59:24 UTC 2004


On Sat, 2004-09-11 at 15:36, Lonnie Cumberland wrote:
> Hello all,
> 
> Here is a dumb question I guess, but I have a host name that I want to 
> the localhost to but am not sure of all of the files that need to be 
> changed?
> 
> I do think that the /etc/hosts shold be changed but are there others as 
> well?
> 
> Thanks,
> Lonnie
> 
> 
The initial hostname is set in the file /etc/sysconfig/network.

Be aware that the networking startup scripts may obtain the hostname
from a DHCP server or DNS server (as a reverse lookup).

If you set the name to something in /etc/sysconfig/network, it is
probably a good idea to have that name appear in /etc/hosts (as you were
thinking), to ensure that your machine knows how to find itself.

HTH,

--Rob





More information about the fedora-list mailing list