Symptoms

When attempting to add a new domain or rebuild the DNS configuration, you receive an error similar to the following.

(XID vqskjs) A DNS entry for “domain.tld” already exists. You must remove this DNS entry from this server or all servers in the DNS cluster to proceed. at /usr/local/cpanel/Whostmgr/Accounts/Modify.pm line 971. 

 

Description

The error occurs when the domain's zone file no longer exists on the server, but its configuration remains in the /etc/named.conf file.

 

Workaround

  1. Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
  2. Run the cleandns script.
    /scripts/cleandns