actually the man to which you r mailing is not here,he is presently at
banglore strugling for getting a job,i am his brother

-----Original Message-----
From: Keith Morse [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 3:24 AM
To: RedHat List (E-mail)
Subject: Re: Renaming host


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

****************************************************************************
This electronic communication and any accompanying document is being
transmitted over the Indian Oil Network and contains confidential
information that is for the exclusive use of the individual or entity to
which it is addressed and is protected against unauthorised disclosure. If
the reader of this message is not the intended receipient or the employee or
agent responsible to deliver to the intended receipient, or is not intended
to act on it, be aware that any disclosure, dissemination, distribution or
copying of this communication, or the use of its contents is prohibited and
is likely to be attended by legal consequences. If you have received this
communication in error and/or are not the intended receipient, please
immediately notify the undersigned or Indian Oil Corporation Ltd. at the
telephone or the fax number or email address given above and permanently
delete the original message from your email system. Whilst this mail has
been checked for all the known viruses, recipients should undertake their
own virus checking as Indian Oil Corporation Ltd. will  not accept any
liability whatsoever  
****************************************************************************



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to