[Solved] A DNS entry for “xxx.com” already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

I got this error while trying to add a domain as an Addon on the primary cPanel account. The domain is already pointing into another servers which also using the same DNS cluster and that was actually creating the problem.
I have tried a lot and got this solution!! 🙂

Error details:

A DNS entry for “xxx.com” already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

Please do follow the steps below:

Step 1 : SSH to the server as root user where you are trying to add the domain.

Step 2 : Check the zone list. You can check it under the directory “/var/named.” There might be an entry for this domain. If so, remove it and try to add the domain again.

If it is not in the server, sure, it will be in any other servers using the same DNS cluster. Please confirm the domain name before removing it from the cluster.

Taking a backup of zone file should be fine!

csf-block

Step 3 : Execute the following cPanel script from the server shell as root user:

/scripts/killdns domain.com

That’s it! Then try to add the domain again. It should be okay now!! 🙂

Now, verify this through command line:

cat /var/cpanel/userdata/$user_name/main

That’s it!! Please let me know if you need any help on it.

Also read:

Unable to establish a PHP session – PHPMyAdmin error
How to change main domain of a cPanel reseller account with an existing domain name?
Possible root compromise detected: Failed to create directory /dev/null – cPanel
[Solved]cPanel icon is missing from WHM’s List accounts option
How to enable login email alert on server – WHM and SSH login alert

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

13 thoughts on “[Solved] A DNS entry for “xxx.com” already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

  1. Thanks before for the information. but i wanna ask : when the execute /scripts/killdns domain.com process, where i should be to write that syntax (/scripts/killdns domain.com) in cpanel ?. I mean step by step in cpanel may be more clear for me. thanksful again for your help. 🙂

  2. I was also having the same issue and i fixed it on my Redserverhost .com hosting easily by deleting that DNS zone.
    Right after that it got successfully created. Your article helped me a lot to do this.

Leave a Reply

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