In this post we are going see how can we change the host name of a Linux machine. Just follow the steps below:
127.0.0.1 localhost.localdomain localhost --new_hostname--
::1 localhost6.localdomain6 localhost6
10.111.1.111 xxxx1
10.111.2.111 xxxx2
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain <
hostname --your new hostname--
hostname