Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

Change hostname – CentOS 7

Changing the hostname on CentOS 7 is pretty straight forward, issue the following at shell and replace HOSTNAME with the hostname you want to set.

hostnamectl set-hostname HOSTNAME

To verify that the new hostname is set issue the following:

hostnamectl