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

  • 50 Users Found This Useful
Was this answer helpful?

Related Articles

Setup DKIM with Kloxo and qmail

This is a guide to install DKIM on CentOS 5 mail servers using qmailtoaster and Kloxo panel:...

Buy web hosting with BitCoin

Web Hosting with Bit Coin Web hosts are companies that own servers and rents out web space on...

Buy web hosting with SOFORT

Web Hosting with SOFORT Webhosting companies are essential in today’s current world. The...

Buy web hosting with QIWI

Web Hosting with QIWI Web hosting services have become one the leading investment venture. This...

Buy web hosting with Western Union

Web Hosting with Western Union A web hosting company puts a website on its servers. This will...