1) Issue the command :
root# hostname new-host-name2) Change the network configuration file /etc/sysconfig/network to include the line :
HOSTNAME=new-host-name3) Restart the systems which relied on the hostname (or reboot):
root# service network restartRestart desktop
i) Bring down system to console mode :
root# init 3
ii) Bring up X Windows:
root# init 5
One may also want to check the file /etc/hosts for an entry using the system name which allows the system to be self aware.
No comments:
Post a Comment