Knowledgebase
Our Client Portal

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
How to alter SSH Port (Views: 425)
Slow SSH login (Views: 2671)

Recent News
We have recently received notification from the SolusVM team of a security issue...
Some users may have noticed a brief amount of disruption to service just after 1...
We have received notification from the upstream of our London DR POP (Note: this...
Knowledgebase Articles
Would you like to visit us at our onsite office in person or perhaps tour the da...
Slow SSH logins are generally because your server/vps is attempting to do a rDNS...
Generally speaking to check what version of a Linux distribution you have instal...