On Wed, 27 Mar 2002, Patrick Nelson wrote: > So I posted numerous times about the issue hostname changing. No > response... which is cool. So I embarked down to find out what are the > specifics about renaming a host. My main attempt was to do this on a > running system. The reason I'm doing this is part of a large testing > environment. So I ultimately know simple steps in the renaming process, > however they involve a reboot rather than a simple network restart. Here is > the process: > > 1. Edit /etc/sysconfig/network > 2. Reboot > > I also had to deal with changing nameservers: > > 1. Edit /etc/resolv.conf > 2. service network restart > > I also had to deal with Tripwire: > > 1. Rename the Key file > 2. Rename the database (and the backup file) > 3. Dump old reports (my preference) > 4. Edit old profile and put in new hostname > 5. Update the database with new profile > > I wrote a script that deals with all of this for me and great I rename the > system and after the reboot it's cool. The thing that bothers me is why I > can't do this without a reboot. Not know where else to look I'm asking if > anyone knows any other info that can help me.
AFAIK, the host's hostname can be set/changed with the command "hostname". I believe this is how "/etc/rc.sysinit" sets it on a system boot. It sources "/etc/sysconfig/network" which sets the variable "HOSTNAME" to it's current value. You should be able to run "hostname" with the name as a arguement. YMMV _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list