How to change a domain name

This article explains how to change the domain name of an account on a Linux dedicated server with a cPanel/WHM license.

Scope: This procedure modifies the primary domain of an existing account. The cPanel user (username) does not change automatically.

Before changing the domain

  • Confirm that the new domain is registered and available for use.
  • Update the DNS records (A record or delegation) to point to your server.
  • Prepare the email, SSL, and internal link changes that depend on the previous domain.
  • Make a backup of the account before modifying critical data.

Important: Changing the domain does not automatically migrate SSL certificates or external configurations (Google Search Console, APIs, etc.). Review those services after the change.

Change the domain from WHM

  1. Log in to WHM with the root user at https://your-domain-or-ip:2087 or https://your-domain-or-ip/whm.
  2. Go to Account Functions → Modify an Account.
  3. Select the account by domain or by username and click Modify.
  4. In the Domain field, replace the current domain with the new name.
  5. Click Save to apply the change.
Field / action Detail
Domain New primary domain, without www (e.g., newdomain.com).
Username Remains the same; it is not necessary to modify it in this step.
Save Confirms the change and updates the account configuration on the server.

After the change

  • Verify that the site loads with the new domain (HTTP and HTTPS).
  • Reinstall or reissue the SSL certificate for the new domain.
  • Review email accounts, redirects, and databases that reference the previous domain.
  • In the account's cPanel, confirm that the DNS zone of the new domain is created correctly.
  • Wait for DNS propagation if you just updated the records (it can take up to 24–48 hours).

Common issues

  • The site does not open with the new domain: review the A record and DNS delegation to your server.
  • SSL certificate error: the certificate is still issued for the previous domain; generate a new one.
  • Email stops working: update MX, SPF records, and accounts configured with the old domain.
  • WHM does not save the change: verify that the new domain is not already assigned to another account on the server.

If the change fails, the domain is duplicated in another account, or you need to migrate the entire site to a new account, open a ticket from the client portal or consult via the site's online chat.

  • cambiar nombre dominio servidor dedicado
  • 11 Users Found This Useful
Was this answer helpful?

Related Articles

Configure PuTTY for SSH

This article complements the SSH access guide and explains how to configure PuTTY to connect to a...

Reseller - Create a reseller account on a dedicated server

This article explains how to create a reseller account or convert an end-user account into a...

PHP - Enabling / Disabling Properties

This article explains how to enable or disable PHP properties for a specific account on a Linux...

Change root password in WHM

This article explains how to change the root user password of a Linux dedicated server from WHM,...

DNS with custom nameservers

This article explains how to request and configure custom nameservers (for example...