Troubleshooting & Common Errors

Fixing the "A DNS entry for the domain already exists" Error When Adding an Addon Domain in cPanel

By the Domain India teamPublished 8 min read
Knowledge base article
Contents (7 sections)

You try to add a domain in cPanel and it refuses with a message like (XID abc123) A DNS entry for the domain "example.com" already exists. It means the server already holds a DNS zone for that name, even if you can't see the domain anywhere in your own account. This guide explains why it happens, what you can check yourself on Domain India shared hosting, and when to hand it to support.

Key takeaways

The error means a DNS zone for the domain already exists on the server: left over from an earlier removal, still attached to another hosting account, or already in your account as a subdomain or alias. First check your own Domains list and any other hosting accounts you have with us. If the domain isn't there, open a support ticket: on shared hosting only the server administrator can remove a stale zone, and you can't fix it from cPanel yourself.

1. What the error actually means

When you add a domain in cPanel (Domains › Domains › Create A New Domain), cPanel does three things: it registers the domain to your account, creates a folder for it, and creates a DNS zone for it on the server. Before it creates the zone, it checks whether one already exists. If one does, it stops with "A DNS entry for the domain already exists" rather than overwrite a zone that may belong to someone else.

The XID in the message is a reference number for that attempt. Keep it; support can use it to find the exact log entry.

2. Common causes

Already in your account
The domain is already set up as an alias (parked domain), as a subdomain of another domain, or as an addon domain you forgot about.
In another hosting account
You or a previous developer hosted the domain in a different account on the same server, and that account still has it.
Left over after removal
The domain was removed, but its DNS zone stayed behind on the server.
Removed a moment ago
You just deleted the domain and tried to add it again before the server finished cleaning up.

The first and last causes you can fix yourself. The middle two need either access to the other account or the server administrator.

3. Checks you can do yourself

  1. Look at your Domains list.
    In cPanel, open Domains › Domains. Search for the domain. If it is listed, it is already on your account. Use it as it is, or remove it there first and add it again.
  2. Look for it as a subdomain.
    A name such as shop.example.com may exist as a subdomain of example.com already. It also appears in the Domains list.
  3. Check your other hosting accounts.
    If you have more than one hosting service with us, open your hosting services, log in to each account's cPanel and repeat step 1. If you find the domain in another account, remove it there first.
  4. Wait a few minutes and try again.
    If you have only just removed the domain, give the server a few minutes before you add it again.
  5. Read the Zone Editor.
    Open Domains › Zone Editor. If the domain is listed but not in your Domains list, the zone is orphaned: go to section 4.
Remove domains the proper way

Always remove a domain from Domains › Domains in cPanel. Deleting its folder in File Manager removes only the files. The domain, its DNS zone and its email accounts stay on the server, and the next attempt to add it fails with this error.

4. When you need support

If your checks find nothing, the zone belongs to something you can't see: another account on the server, or a leftover. On shared hosting you don't have access to the server's DNS configuration, and you shouldn't: it holds every customer's zones. Support will find where the zone comes from and remove it if it is stale.

Open a ticket at /client/support/new (or /support/ticket if you aren't logged in) and include:

  • the domain you are trying to add;
  • the full error message, including the XID;
  • the cPanel username of the account you are adding it to;
  • whether the domain was hosted with us before, and in which account if you know.

If the zone is still attached to an active account that isn't yours, support can't simply delete it. They may ask you to show that you control the domain before they change anything. You can also reach support on 24/7 live chat.

5. After the domain is added

Adding the domain in cPanel is only half the job. Visitors reach your new site only when the domain points to your hosting:

Then check that free SSL has been issued for the new domain before you share its https:// address. For the full setup of a second website, see how to add an addon domain and parked, addon and subdomains explained.

6. If you run your own cPanel server

This section is only for administrators of their own cPanel and WHM server with root access. Domain India VPS plans don't offer cPanel, and shared hosting customers can't run any of this.

On your own server, find where the name is registered before you delete anything:

bash
# Which account, if any, owns the domain?
grep -i 'example.com' /etc/userdomains

# Is there a zone file? (BIND-based servers)
ls -l /var/named/example.com.db
  • If /etc/userdomains shows the domain on another account, remove it from that account (in its cPanel, or through WHM) rather than deleting the zone underneath it.
  • If no account owns it, delete the orphaned zone in WHM with DNS Functions › Delete a DNS Zone, or from the command line with whmapi1 killdns domain=example.com.
  • If the server is part of a DNS cluster, check the other cluster members too, because the zone may be coming back from there.
  • Run /scripts/updateuserdomains to rebuild the domain-to-user map, then add the domain again.
Don't hand-edit cPanel's internal files

Old guides tell you to sed lines out of named.conf or edit files under /var/cpanel/users/. That can leave the server inconsistent and break other accounts' DNS. Use WHM or the WHM API, and take a backup first.

7. Where Domain India hosting fits

Adding extra domains needs a plan that allows more than one website. On our cPanel hosting, Starter is for one website and Growth hosts up to five:

cPanel Growth
₹200/mo + GST
  • 50 GB NVMe SSD Storage
  • 100 GB Monthly Bandwidth
  • 5 Websites
  • 50 Email Accounts
See plan details

Prices on the card are live Domain India list prices and exclude 18% GST. Compare all plans on cPanel hosting.

What does "A DNS entry for the domain already exists" mean in cPanel?

It means the server already has a DNS zone for that domain name, so cPanel refuses to create a second one. The zone may be in your own account as an alias or subdomain, in another hosting account, or left over from an earlier removal.

Can I delete the old DNS zone myself on shared hosting?

No. On shared hosting the server's DNS configuration is managed by the server administrator. Check your own Domains list and your other hosting accounts, and if the domain isn't there, open a support ticket with the full error message.

I deleted the addon domain's folder. Why does the error still appear?

Deleting the folder removes only the files. The domain and its DNS zone stay on the server until the domain is removed from Domains in cPanel, so remove it there and then add it again.

What should I include in my support ticket?

The domain name, the full error message including the XID, the cPanel username you are adding it to, and whether the domain was hosted with Domain India before.

Does fixing this error make my website live?

No. Adding the domain in cPanel only prepares the hosting. The domain must also point to your hosting, through hosting nameservers or an A record, before visitors reach the site.

How many domains can I add to my cPanel account?

It depends on your plan. cPanel Starter hosts one website and cPanel Growth hosts up to five, so an extra domain needs a plan with room for it.

Ready to fix it? Check your hosting services for the domain first, then open a support ticket with the XID if it isn't in any of your accounts.

Still seeing the error?

Send us the domain and the full error message, including the XID, and support will find where the old zone comes from.

Open a ticket

Ready when you are

Get cPanel hosting from ₹125/mo + GST

See plans

Was this article helpful?

Your answer helps us decide what to improve next.

Still need help? Open a support ticket and our team will reply.

Prefer an app? Add this site to your home screen.Get the app