Tag Archives: change hostname on centos

How to Change Server Hostname on CentOS Dedicated Server?

The blog post shows steps on how to change the hostname on CentOS dedicated server. There are two different methods for changing the server hostname on CentOS.

The first method to change the server hostname on CentOS is using the “Hostname command”.

Login to your dedicated server and open the console.

Fire the following command into the console:

hostname my.server.com

Once the above command is fired, it will automatically change the server hostname on CentOS.

The second method to change  the server hostname on CentOS is via the “Editing network file”. read more