Change Hostname

Great article here.
Check current hostname:

hostname

Change the hostname in the following files:

vi /etc/sysconfig/network
vi /etc/hosts

Now run:

hostname mynewhostname

restart networking

/etc/init.d/network restart

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>