Table of Contents
Being a reseller or server owner of cPanel / WHM servers you will receive this error or message “DNS entry for domain.com already exists” while adding the domains to the server.
This error mainly occurred when the instance of the same domain partially exists on the server for some reason and to fix it we need to remove the entry from the server.
Then, you must remove this DNS entry from all servers in the DNS cluster to move ahead. Follow these below-mentioned steps to solve this error.
/scripts/whoownsdomain_name
i)Then, kill the DNS for the Domain if you haven’tfind any user for the searched domain.
/scripts/killdns domain.com
ii)Next, find the Domain under the file userdoamins
grep domain_name /etc/userdomains
These steps will help you to get a domain and kill accordingly as per your requirement.
Also Check: How do I login to webmail of my domain hosted on a CPanel server
/etc/named.conf
/usr/local/apache/conf/httpd.conf
/var/named/domain.com.db?
/etc/userdomains
/etc/localdomains?
/var/cpanel/users/<username>
If you’re not able to find your domain from above-mentioned steps then go through below mentioned commands to get the domain.
/scripts/killdns mydomain.com
/scripts/updateuserdomains
/scripts/rebuildhttpdconf
I hope with these above mentioned steps, you’ll find your domain and you can add or delete the domain accordingly.
grep -rl “mydomain.com” /etc/*
grep -rl “mydomain.com” /var/*
Also Check: How do I create an email account associated with my website in CPanel
Once you’ve removed the unwanted domains from all the paths then your new domains are ready to use. Further, you can add domains to your server without any error. Further, it’s your duty to take configuration file backup before changing the domain name servers on the servers and the above steps are subject to respected Cpanel versions only.
As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…
Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…
Welcome to the complete guide to WordPress security best practices in 2024. As technology evolves rapidly, implementing strong security measures…
Hey, wanted to learn about web hosting? Or do you want to start a new website and need hosting? Questions…
In today's digital world, the threat of DDoS attacks has become increasingly prevalent. These types of attacks have the power…