How to change the VPS or dedicated server hostname

If you like to change the hostname of your Linux VPS server or dedicated server you need a root access and SSH and command:

hostname host.domain.com

In case you are using some control panel like Plesk or cPanel you can change the server hostname easily inside the hosting control panel admin area.

There are problems sometimes if you are using cPanel as hosting control panel, and it will stop working if you change the linux server hostname. In this case you will need to resync the cPanel license with cPanel.net license server.

The following command should be run inside SSH as root:

/usr/local/cpanel/cpkeyclt

  • 64 Users Found This Useful
Was this answer helpful?

Related Articles

Change of the reverse DNS record for VPS hosting and dedicated server

To change the reverse DNS record for IP address, you’ll need to contact the support department in...

Checking of open connections

If you want to see the open connections to port 25 on your virtual private server or dedicated...

Do I have full root access to my VPS

Yes you do. With virtual hosting (VPS) you get root password for access, trough which you have...

Do I have my own IP address with my virtual server

Yes you do. We provide your own IP address to each virtual private server. If you need more than...

How to create .tar.gz archive

Creating .tar.gz archive can be done with one command. Use the following: tar -pczf...