Re: [SLUG] hostname won't stick

From: Mario Lombardo (mario@alienscience.com)
Date: Tue Oct 22 2002 - 15:27:59 EDT


Supe-dupe! Thanks, guys!

Now some gripe regarding RedHat7.1...
Why do the man pages of hostname and ypdomainname say they will work,
yet they don't--only temporarily?
If hostname and ypdomainname are successfully changing something,
what are they changing?
Is there a way to 'trace' this w/o being a programmer?
How would one know what file is getting sucked in to present the
hostname at the shell prompt (I looked in .bashrc and .bash_profile;
nothing)?

At least this way, an admin could tell where the source is. I'm
going to delve into this /etc/sysconfig directory some more.

/mario

>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:32:41 EDT