Ah, yes, I forget about that one. Also the DOMAIN line in the same file.
On Sunday 17 June 2001 00:18, you wrote:
> You should also change the line in /etc/sysconfig/network for HOSTNAME
>
> On 15 Jun 2001 20:39:03 -0400, Jay DeKing wrote:
> > I've never had any luck with the hostname command; it works fine until I
> > reboot, then my changes are lost.
> >
> > The best way to do it is to edit (as root) the /etc/hosts file.
> >
> > DO NOT change or delete the line that says "localhost.localdomain
> > localhost" - some aspects of the system really want that to be there.
> > Rather, copy that line, but in the new line change both instances of
> > localhost to the new hostname and change localdomain to your desired
> > domain name.
> >
> > The DNS address for both lines should be 127.0.0.1 .
> >
> > I personally don't use Linuxconf because it always insists on changing a
> > lot of things that I don't want changed - for example, I lose my
> > user-level pppd privileges if I let Linuxconf do things its way. I'll use
> > it as a reference tool but not to modify settings. And, just in case I've
> > been awake hacking away too long and do save the fubar'd changes, I have
> > scripts set up to fix the usual offenders (such as chmods and chowns)
> >
> > Jay DeKing
> >
> > On Friday 15 June 2001 10:46, Tim Holmes wrote:
> > > You can also use the hostname command.
> > >
> > > Just type hostname <mymachine.name.domain.com>
> > >
> > > That will do the trick as well. That's what I've used in FreeBSD.
> > > Since there's no Linuxconf to use that I know of, and I don't have X
> > > installed to find another GUI. tdh
> > >
> > > --
> > > T. Holmes
> > > -----------------
> > > UNIXTECHS.org
> > > [EMAIL PROTECTED]
> > > -----------------
> > > "Real Men Us Vi!"
> > >
> > > | How do I change the hostname that is set during startup
> > > | (localhost.localdomain)? The hostname command changes it, but at
> > > | startup it is always set back to localhost.localdomain during boot.
> > > |
> > > | -Noah Richards
> > >
> > > ------------------------------------------------------------------
> >
> > --
> > "I thought I had an appetite for destruction,
> > but all I really wanted was a club sandwich"
--
"Support your local law enforcement agency -
this week commit the crime of your choice!"