[NTLUG:Discuss] Re: Renaming a Linux host

Burton Strauss Burton_Strauss at comcast.net
Mon Jul 25 07:42:34 CDT 2005


That's what he's saying - the hostname command just changes the in-memory
value (in fact, hostname is usually what the various boot scripts execute to
set it based on your settings in /etc/sysconfig/network).

Plus hostname wouldn't change a registered dhcp value (if there is one) nor
other external names.  And it doesn't fix /etc/hosts for local name
resolution.

-----Burton 

-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org] On Behalf
Of Leroy Tennison
Sent: Sunday, July 24, 2005 10:48 PM
To: NTLUG Discussion List
Subject: Re: [NTLUG:Discuss] Re: Renaming a Linux host

Robert Citek wrote:

>
> On Jul 23, 2005, at 9:04 PM, Leroy Tennison wrote:
>
>> Thanks for the input.  While Googling I came across what should  have 
>> been obvious 'man hostname' says that the program will set the 
>> hostname. Now, is that too simplistic?
>
>
> Yes, for the hostname will only be changed for the current kernel 
> session.  What distro are you running?
>
> Regards,
> - Robert
> http://www.cwelug.org/downloads
> Help others get OpenSource software.  Distribute FLOSS for Windows, 
> Linux, *BSD, and MacOS X with BitTorrent
>
> _______________________________________________
> https://ntlug.org/mailman/listinfo/discuss
>
Wait a minute, you're telling me this won't presist through reboot?  I'm
mainly running Red Hat 9 although I have SuSE 8.2, 9.2, Mandrake 10 (or 11,
don't remember) and Fedora Core 3 installed.


_______________________________________________
https://ntlug.org/mailman/listinfo/discuss





More information about the Discuss mailing list