Pages

Saturday, August 4, 2007

Changing Hostname Linux

Changing Hostname Temporarly

Example: hostname newhostname.com

Changing Hostname Permanently

Edit the file /etc/sysconfig/network and change the value of HOSTNAME in it, Save and exit
To avoid dns errors edit the file /etc/hosts and create a line as below
192.168.1.50 newhostname alias
Change ip with your server ip and newhostname and alias with anything you have setup

No comments:

Post a Comment