A DNS entry for 'domain_name' already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

While adding addon domain under cPanel, I was getting error as below -

A DNS entry for 'domain_name' already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

Solution -

1. Please make sure the domain which you are trying to add the addon domain should not present as addon/parked(aliases)/sub-domain on the same server.

2. If it is not present then check the DNS entry in DNS zone file. You will need root SSH access for it. SSH to server and check the below file -
/var/named

3. If there is entry of domain then you can remove/kill the DNS entry using this command - 
/scripts/killdns domain_name

Please give a try now, it should work! You can verify the DNS entry by firing the using this command - 
cat /var/cpanel/userdata/$user_name/main

4. If you are still facing the same issue then you will need to check the other servers with the same DNS cluster. There should not be entry of domain on the other server which you are trying to add.

If there is DNS entry then you will need to remove that entry. (Please make sure the domain which you are trying to add is present as addon domain/parked domain(aliases)/sub-domain).

Note -

Please take backup of DNS zone file before editing it (for safe-side). You can fire below command for it -
cp -rp /var/named/domain_name.db /var/named/domain_name.db_backup


  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

How to setup the root login alert notification email?

Its very important to keep a check on your servers and who logs into the server, From security...

How to enable Open SSL on WHM?

Before enabling open SSL, you can check whether it is already enabled on your server. Please fire...

How to install mod_pagespeed on WHM?

'mod_pagespeed' is module of Apache which is nothing but plugin which is used for compressing the...

How to enable Hot Link Protection in cPanel?

To avoid other sites to use your website's bandwidth, you can enable the hot link protection....

Powered by WHMCompleteSolution