[NTLUG:Discuss] Re: Renaming a Linux host

tr_data1 tr_data1 at ev1.net
Mon Jul 18 12:13:21 CDT 2005


>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=





More information about the Discuss mailing list