cPanel

Fix A DNS entry for the domain already exists when adding a subdomain

When attempting to set up a new subdomain or domain in cPanel, you might encounter the error:

“Error: (XID fxz77v) (XID ejza8k) A DNS entry for the domain “subdomain.example.com” already exists. at /usr/local/cpanel/Cpanel/Admin/Modules/Cpanel/subdomain.pm line 176.”

This happens because cPanel has detected a pre-existing DNS record for the specified subdomain or domain. Below is a guide to help you address this issue.

Common Causes of the Error

  1. Residual DNS Records: A DNS record for the subdomain or domain might have been added manually or left behind from a previous setup.
  2. Conflicts with Other Configurations: Sometimes, other domain or subdomain configurations may create overlapping entries.

How to Fix ‘A DNS entry for the domain already exists’ error

  1. Log in to your cPanel account.
  2. Navigate to the Zone Editor (under the Domains section).
  3. Search for any DNS entries associated with the subdomain or domain name (e.g., A or CNAME records).
  4. If a conflicting record is found, delete it. Be careful to only remove entries related to the subdomain or domain in question to avoid unintended issues.

Tips to Prevent Future Errors

  • Remove Records After Deletion: If you delete a domain or subdomain, ensure you also delete its associated DNS records.
  • Review Existing DNS Records: Before creating a new subdomain, check for related DNS entries in the Zone Editor.
  • Use Unique Subdomain Names: Choose distinct names to avoid duplication or conflicts.

The “DNS entry already exists” error is usually caused by overlapping or leftover DNS records. By checking the Zone Editor and, if necessary, contacting your hosting provider, you can quickly resolve the issue. For ongoing management, always monitor DNS records carefully to avoid similar conflicts in the future.

Was this guide helpful?

Need help with this?

Open a ticket and link to this guide so our team can see what you have tried.

View support tickets

Power your business with Ecenica Hosting

Built for WordPress and serious websites. Fast, secure and supported by real people in the UK.

Ecenica hosting services represented by a connected red route across London