change the hostname in FC4

David Niemi drn_temp2 at rogers.com
Wed Jul 13 10:09:23 UTC 2005


On Wed, 2005-13-07 at 09:23 +0200, Andreas Wahlert wrote:
> Tyler Nally wrote:
> > If you know what it is *now*.. you can go to /etc
> > 
> > # cd /etc/
> > 
> > .. and do a ..
> > 
> > # grep knownhostname * */* */*/*
> > 
> > .. to search up to three levels deep for anything that
> > matches.  I found the match in...
> > 
> > /etc/sysconfig/network
> > 
> > 
> > On Wed, July 13, 2005 2:10, Andreas Wahlert said:
> > 
> >>Hi @all
> >>
> >>
> >>i'm just a little bit blind at the moment. I have a FC4 without X, only
> >>  console. Where can i change the hostname of the machine?? i have
> >>changed it in /etc/sysconfig/networking/devices/if*
> >>
> >>I can't find a file named "hostname" in etc.

> Ahhhhh
> 
> has to be changed in /etc/sysconfig/network

You should also change the host name in the /etc/hosts file.  Make sure
that you follow the proper syntax for this file depending on if you get
your IP by dhcp or if it is static.




More information about the fedora-list mailing list