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
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 ...
As of Java version 7 onwards, the Java development team continue to make securit...
Live Chat

Need a helping hand?

We've got a lot of solutions to choose from so why not let one of our experts help!

Live Chat

Find this popup annoying?

If so, we're very sorry! You can prevent further invitations by selecting "YES" below