[ale] changing hostname

Chris Ricker kaboom at gatech.edu
Wed Jan 13 13:22:48 EST 1999


On Wed, 13 Jan 1999, McCord, Charlie wrote:

> 
> > at a command prompt, if i try 'hostname newName', the name changes but
> > it reverts back to the old name at reboot.
> > 
> > i've even vi'd /etc/HOSTNAME and /proc/system/kernel/hostname. the
> > change still only lasts until a reboot.
> > 
> > i've also tried 'hostname -f  /etc/HOSTNAME' again it only lasts until
> > a reboot.
> > 
> > however, if i use the gui 'netcfg' the name change sticks.  i prefer
> > not to do it this way.
> > 
> > any ideas?  thanks, charlie mccord

RH stores a lot of stuff in /etc/sysconfig and then reads that in on
start-up to make settings.

In this case, it reads the hostname from /etc/sysconfig/network, then sets
that system-wide when rc.sysinit runs.

later,
chris

--
Chris Ricker                                            kaboom at gatech.edu
                                               chris.ricker at m.cc.utah.edu






More information about the Ale mailing list