Bobcares

How to fix the error “A dns entry for the domain already exists”

by | Oct 16, 2018

"A DNS entry for domain.com already exists, You must remove this DNS entry from all servers in the dns cluster to proceed."

 

Resellers and server owners in cPanel/WHM servers come across this error message when creating domains in their server.

As part of our Outsourced Technical Support for web hosts, we routinely resolve such cPanel/WHM account related errors.

“A dns entry for the domain already exists” – When do you see this error?

cPanel/WHM control panel provides an easy way for server owners to create new domains via WHM interface. But this can give error in certain scenarios.

One such scenario is that a DNS entry for the domain already exists, and the error message shows:

Account Creation Status: failed, A DNS entry for domain.com already exists, You must remove this DNS entry from all servers in the dns cluster to proceed.

 

The same error can also happen when resellers try to add addon domains to their hosting via their WHM.

Account Creation Status: failed, Sorry, a DNS entry for example.com already exists, please delete it first (from all servers in the dns cluster)

 

3 reasons why the error “A dns entry for the domain already exists” shows up

A DNS zone file is a simple text file which is is essential for the functioning of DNS service. Each domain (or addon domain) has a unique DNS zone file in the server.

The DNS file for a domain contains the resources records for that particular domain. These include MX entry, nameserver details, CNAME records, etc.

If the DNS Zone File for a domain already exists in the server, you cannot create a new domain or addon domain in that server with the same name, and it will throw up this error.

There are 3 main scenarios when the DNS zone file already exists in the server.

1. Domain termination incomplete

Most common reason for the error is that a domain with the same name you are creating, existed previously in that server. When that domain was terminated, it may not be properly removed from the server due to software bug or process crash.

This can lead to the DNS Zone entry already existing in the server for this domain, making it impossible to create a new one with the same name, as it will lead to conflicts.

2. ‘Keep DNS Zone’ option enabled

When you terminate an account via WHM, there is an option to select ‘Keep DNS Zone’ in the Terminate Account Screen.

 

‘Keep DNS zone’ feature in ‘Terminate Account’

 

If this option is selected during account termination, the DNS zone for the domain will not be deleted from the server. This will lead to error when creating a new domain in the same name.

3. Domain records exist in server

‘DNS entry already exists’ error also occurs when the domain you try to create, has already been added to an existing cPanel account.

If a domain already exists, you cannot add the same domain name without deleting it.

 

How to fix the error “A dns entry for the domain already exists”

When faced with the error, the first thing we do is to check if a valid domain with the same name already exists in the server.

If not, the DNS zones should be checked and the corresponding DNS record should be deleted. Any DNS record with reference to that domain is also deleted.

For nameservers that are part of a DNS cluster, the DNS record has to be removed in all the nameservers, or else conflicts and errors can occur.

Deleting DNS records should be done with utmost caution, as there are chances of losing custom DNS settings or accidentally deleting wrong records.

At times, the deletion of records from WHM may not work or the record may not show up in WHM. In such cases, we manually delete the DNS zones from respective folders and configuration files.

This check is done in all the nameservers which host the DNS zones, in the case of clusters. Adequate backups are taken to avoid any hiccups that can arise during the process.

Conclusion

Software bugs or human errors can cause errors in account management. We’ve seen the three scenarios of account creation errors our Support Engineers see in the cPanel/WHM servers that we manage, and how we fix them.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

8 Comments

  1. vua phe lieu

    ‘DNS entry already exists’ error also occurs when the domain you try to create, has already been added to an existing cPanel account.

    If a domain already exists, you cannot add the same domain name without deleting it.

    I try to fix, but it is not work

    Reply
    • Sijin George

      Yes, cPanel do not allow duplicate domains. If you get errors with out any duplicates, there may be conflicting entries in your configuration. We’ll be happy to talk to you on chat (click on icon at right-bottom).

      Reply
  2. David

    Where do I find the DNS zone file to check if it is still there?

    Reply
    • Sijin George

      Hello David,
      The DNS zone file exists in your domain’s nameservers.

      Reply
  3. David

    I am also receiving an error when I try to add my other site to the host.

    It says:
    “A site with this domain name already exists at SiteGround. Please choose another domain.”

    I have tried several times to fix the issue but all went in vain. I am just waiting it out for the next 24 hours and see if the problems get fixed.

    Reply
    • Maheen Aboobakkar

      Hello David,

      cPanel do not allow duplicate domains. It seems the domain is already in use in SIteGround causing the issue. You may contact them and locate the account before adding the domain in the new account.

      Reply
  4. drachar

    Thank you. My problem was solved with your help

    Reply
    • Hiba Razak

      Hi ,
      Glad to know that our article helps you solves the issue ? .

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.