Re: [SLUG] hostname won't stick

From: Ranjan Sharma (webuser@thelinuxusers.net)
Date: Tue Oct 22 2002 - 08:10:40 EDT


Hi,

        redhat uses /etc/sysconfig/network to initialize
the network parameters. Defining a HOSTNAME variable
should solve the problem.

bye
ranjan

On Mon, Oct 21, 2002 at 11:32:05PM -0400, Mario Lombardo wrote:
> I'm using RH7.1.
>
> I type at the shell prompt:
> hostname mynewhostname
> ypdomainname mynewhostname
>
> /etc/hosts has:
> 127.0.0.1 mynewhostname
>
> Why is it when I reboot, I lose the mynewhostname name? It does back
> to localhost.local.
>
> /mario



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:31:28 EDT