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

"A DNS entry for 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 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 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.


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



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.


Submit a Comment

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

Bobcares is a server management company that helps businesses deliver uninterrupted and secure online services. Our engineers manage close to 51,500 servers that include virtualized servers, cloud infrastructure, physical server clusters, and more.