How to change your hostname – Ubuntu/CentOS Posted on November 30, 2017December 23, 2018 by Nikko CentOS Open the server’s network file vim /etc/sysconfig/network Replace the old hostname with the new hostname HOSTNAME=NewHostName Edit the hosts file vim /etc/hosts Replace any occurrence of ... Read More