Knowledgebase - Changing hostname in Centos

Our Client Portal

Portal Home > Knowledgebase > Dedicated Servers > Changing hostname in Centos

Changing hostname in Centos

The steps to change the hostname on your Dedicated Server / VPS in Centos are as follows:

1.) Login to SSH as root
2.) Type "vi /etc/sysconfig/"
3.) Press insert on the keyboard and change the HOSTNAME to your preferred servername
4.) Press ESC on the keybord
5.) Save the configuration by typing ":wq!"
6.) Reboot server

Add to Favourites Add to Favourites

Was this answer helpful?

Print this Article Print this Article

Also Read

Recent News
Knowledgebase Articles
Transferring email accounts from one cPanel server to another is a simple proces...
It is now possible to temporarily suspend the monitoring of Managed Dedicated Se...
Please Note: In order to reset your Centos password you will need KVM access to ...