Hostripples Featured

How To Fix The Error “A DNS Entry for The Domain Existence”

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.

Let’s get started!

a) Find the Username for the Domain by the command:

/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

2) Refer below files and check if the same Domain/Unwanted Domain Exists under files:

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

  1. Below command will remove the dns zone entry from named.conf and also delete the zone file for you.

/scripts/killdns mydomain.com

  • Below command will update the user domain database of cpanel which is maintain by cpanel itself.

/scripts/updateuserdomains

  • Below script will rebuild httpd configuration file to make sure that the virtual host entry is removed for the domain.

/scripts/rebuildhttpdconf

I hope with these above mentioned steps, you’ll find your domain and you can add or delete the domain accordingly.

3) Next,you can use these command to locate your domain

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         

Conclusion

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.

  

  


Ankush
I am working as a Technical Support Executive at Hostripples. I am highly motivated to write Technical Articles that will help readers to follow and implement the same to solve their issues. In my free time, I learn new techniques related to Web Hosting and AWS Cloud.

Recent Posts

How to Get More Customer Reviews That Build Trust and Sales?

Customer reviews have become one of the most influential factors in modern buying decisions. Before choosing a product, service, or…

3 days ago

Why Micro-Influencers Matter: How Small Creators Drive Higher Engagement and ROI

In today’s digital landscape, consumers trust people more than brands. Traditional ads are often ignored, celebrity endorsements feel scripted, and…

1 week ago

2026 SEO Roadmap: Skills Every Digital Marketer Must Have

Introduction: SEO in 2026 Is No Longer Optional—It’s Strategic Search Engine Optimization in 2026 has evolved far beyond keywords and…

2 weeks ago

Website Affirmations for 2026: Build, Grow, and Succeed Online

With 2026 just days away, it’s time to reimagine your website’s future. Hostripples encourages businesses, creators, and entrepreneurs to begin…

1 month ago

Cron Jobs: Automate Everything While You Sleep

Cron Jobs – The Unsung Heroes Think of cron jobs as the unsung heroes of your server — capes optional,…

1 month ago