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

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.

Solution:

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).

Note:

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
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...