Changing hostname
Hai all,
We are using RHEL ES 4.0 Update 6 We have a network of 35 Linux servers, (with no domain installation)..Currently there is a requirement that one server name has to be changed as follows : linux.nodomain.com to apps.domain.com.. Where do I have to change this ?.. How can I make sure that there are no traces of the old hostname remains in the server..Do I have to reboot the server ? Please advise Yusuf |
you can change hostname in file /etc/sysconfig/network also in /etc/hosts
then reboot the system. |
Hi yusufs
If you edit the /etc/hosts file should be enough Angel. |
Quote:
Thanks Friends, Will do and let you know if there is any problem Yusuf |
You will need to change /etc/sysconfig/network in redhat. Don't forget to restart the network services once changed
|
I usually run through this guide to make sure everything is set properly and returns the correct hostname.
http://www.cpqlinux.com/hostname.html |
Hi billymayday,
I've just done the test on Readhat 4 After editing the file /etc/sysconfig/network, and restarting the network service doesn't seems to be enough. After a reboot the changes are done but it should be an other way to apply the change without restarting. Here is what I've tried and doesn't work: Code:
service network restart |
I use 5, so may be different.
Do you havea utility called "system-config-network" installed? |
I believe this section of the link I posted previously would have made the switch without the reboot..
Quote:
|
Actually using the hostname command would probably achieve the same.
|
to chnage host name without reboot u can use echo "hostname" > /proc/sys/kernel/hostname.
hostname command only work for current open shell. |
All times are GMT -5. The time now is 09:14 AM. |