[NTLUG:Discuss] Re: Renaming a Linux host

Leroy Tennison leroy_tennison at prodigy.net
Sat Jul 23 21:04:07 CDT 2005


tr_data1 wrote:

>>If I wanted to rename a Linux host how many places would I have 
>>to change the name?  I know about /etc/hosts, are there others? 
>>    
>>
>
>It's best to locate docs for your specific distro. Here are some areas
>that might apply (might be more):
>/etc/hosts file
>hostname cmd
>/etc/nodename file (IIRC, on Solaris)
>/etc/hostsname file
>/etc/sysconfig/network file
>/etc/sysconfig/network-scripts/ifcfg-* files
>
>And then of course their might be various scripts, bookmarks, etc that
>use the old hostname. Good luck on tracking all those down. Of course,
>you could have the oldname after the new hostname in your hosts file,
>assuming the oldname won't be also used as another system's name,
>to resolve those old bookmarks, etc.
>=TR=
>
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
>
>  
>
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?





More information about the Discuss mailing list