Change primary server domain / hostname

hunt695

Active Member
Oct 30, 2019
38
7
8
croatia
cPanel Access Level
Root Administrator
Hi all,
what is the correct way when changing server's primary domain and hostname?
I used an old domain for initial setup years ago and now I'd like to change it, hopefully without a complete breakdown because I have several active domains there at the moment.

Any tips are greatly appreciated.
Thank you
 
Last edited by a moderator:

quietFinn

Well-Known Member
Feb 4, 2006
1,833
422
438
Finland
cPanel Access Level
Root Administrator
1st, there is no such a things as " server's primary domain", if you server's hostname is host.domain.com, domain.com can be hosted anywhere, and it works as longs as host.domain.com resolves to your server's main IP.

If you want to change server's hostname to host.anotherdomain.com 1st set an A record for host in the DNS zone of anotherdomain.com so that it points to your server's main IP, after that you can change hostname in WHM.
Server's hostname change does not break down any websites in your server.