A DNS entry for domain.com already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed
A DNS entry for domain.com already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed
Reason why you’re getting this error :
1. The domain that you’re trying to add might be already there on the server.
2. There is some DNS entry of the domain on this server. The DNS entry might not be properly removed from the server when the domain was deleted.
Do the below steps if you have server root access. Contact your webhosting company if you don’t have server root access.
How to Fix the above error ?
Important : Before proceeding first take a backup of the domain db file in /var/named directory
cp -a /var/named/domain.com.db /var/named/domain.com.db.backup
Now do the below steps to delete the DNS entry of the add-on domain
1. Open a new web browser and type the below URL to access WHM
http://YourServerIP:2086
2. Click on ‘Delete a DNS Zone’ under ‘DNS Functions’
Home » DNS Functions » Delete a DNS Zone
3. Select the domain from the list and click on ‘Delete’ to delete the DNS entry

Delete dns zone
You can do the same from server backend by executing the below command. The below cPanel script will delete the zone file of the domain.
# /scripts/killdns domain.com

cPanel killdns script
The error should be fixed after doing the above steps. Check domain entries in /var/named directory and named.conf if you’re still facing any issues.
Command :
grep -irl domain.com /var/named/
grep -i domain.com /etc/named.conf
Remove the entries of the domain from the above directories and files. Try adding the domain from cPanel and you won’t face any issues.