Knowledgebase: How-To
Change Your Hostname
Posted by on 14 June 2012 12:31 PM
It is safe to change the hostname of your VPS, from the default '', to '' (go to Networking Setup, and thenHostname in WHM). However, there are some additional changes you will need to make, which are not outlined in the WHM documentation.

When you change the hostname, you must:
  • create a new A record for your new hostname
  • update your Cpanel license (avoid error messages by running the command /usr/local/cpanel/cpkeyclt from the server's SSH Shell as Root)
  • regenerate the security certificate, if you have one (in WHM: SSL/TLS > Reset Server Certificates)
  • wait patiently for DNS propagation to take place (24-48 hours is common)

You can speed up DNS propagation by creating your A record BEFORE you change the hostname, to give it time to propagate before making the change. If you're in a hurry, set your TTL setting to a lower number. 

You can always use your VPS IP to connect to WHM or SSH if needed.


See also Hostname Could Not Be Resolved

(2 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion