Search This Blog

Pages

Thursday, February 24, 2011

How to change hostname in Linux

  1. Edit file /etc/sysconfig/network using your favourite editor. For vi enter vi /etc/sysconfig/network
  2. Look for HOSTNAME=xxxxxx
  3. Change the xxxx to the name you wish to set for your computer. (ex: HOSTNAME=hula.com)
  4. Save the file and restart the xinetd service. (ex: type service xinetd restart in your shell)
Reference: http://www.techiecorner.com/99/how-to-change-hostname-in-linux/

No comments:

Post a Comment