Search This Blog

Monday, November 12, 2012

How to Modify HostName RHEL OEL CentOS 6

To modify hostname on RHEL OEL CentOS 6 is simple:

1.To update on fly:

#hostname milliondollarserver.com


2.Write into network config file:

#vi /etc/sysconfig/network


NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=milliondollarserver.com


3.Add new hostname into /etc/hosts file:

# cat /etc/hosts


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 milliondollarserver.com localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6

No comments:

Post a Comment