Change hostname on Centos 6.3

How to change hostname on Centos 6.3

This guide will help you how to change hostname on Centos 6.3

Present your hostname is

[root@localhost /]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost.localdomain
[root@localhost /]#

Change by modify /etc/sysconfig/network

[root@localhost /]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=Centos6.3
[root@localhost /]# init 6
[root@localhost /]#

After reboot, we will get new hostname.

login as: root
root@192.168.0.112’s password:
Last login: Wed Dec 5 01:05:27 2012 from 192.168.0.105
[root@Centos6 ~]#

That’s all. Thanks for using IThelpblog.com

 

 

Leave a reply

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