March 24, 2008
Filed Under (Linux HOW TOs) by admin on 24-03-2008

New to Linux? Need to change the hostname of you server? (A hostname is the unique name by which a network attached device is known on a network.) If you enter the wrong hostname during the installation, and you need to change the hostname, here is how you do it:

Edit file /etc/sysconfig/network using your favorite editor:

# nano /etc/sysconfig/network

Look for HOSTNAME=xxxxxx

Change the xxxx to the name you wish to set for your computer. (ex: HOSTNAME=server.mabuhayhosting.com)

Save the file by typing:

Ctrl+X then hit Y and enter

Now restart the xinetd service:

# service xinetd restart

Done! You have just changed your hostname in Linux platform

Tags: hostname, linux, xinetd

Related posts



You must be logged in to post a comment.