Fix - A DNS entry for 'domain_name' already exists! Print

  • 0

While adding the addon domain under cPanel, one of our staff was getting errors 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.


1. Please make sure the domain to 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 the DNS zone file. You will need root SSH access for it. SSH to the server and check the below file: /var/named.

3. If there is the entry of a domain then you can remove/kill the DNS entry using this command:

/scripts/killdns domain_name

Please give it 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 the entry of domain on the other server which you are trying to add.

If there is a 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).


Please take a backup of the DNS zone file before editing it (for the safe side). You can fire the below command for it:

cp -rp /var/named/domain_name.db /var/named/domain_name.db_backup

Was this answer helpful?

« Back

Send Message