• Contact Us
  • copyright
  • About Us
  • Privacy Policy
  • Devops
  • Linux
Globedrill

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

Linux/09 Dec, 16/2625/0
Linux

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

 

You might have seen this error while trying to add an add-on domain in cPanel.

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

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

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.

Leave a Reply Cancel reply

.

About Us

Globedrill.com is a website that publishes articles related to Linux and Devops. Globedrill was started on April 2016.

Contact Us

Email : globedrill.c@gmail.com

Globedrill

Copyright © 2016 Globedrill. All Rights Reserved. The content in this website is copyrighted to Globedrill.com and may not be republished either online or offline.

  • About Us
  • Privacy Policy
  • Contact Us
  • copyright