---

How to change hostname on CentOS 7

This tutorial guides you through the process of changing a hostname on a CentOS 7 system.

The hostname is set at the time when the CentOS operating system is installed or if you are spinning up a virtual machine it is dynamically assigned to the instance at startup.

The method described in this tutorial will work without the need of restarting your system.