DNS Zone deleted, Old domaine redirect to first Cpanel Account

Operating System & Version
Centos 7
cPanel & WHM Version
100

jonary

Registered
Nov 5, 2021
1
0
1
France
cPanel Access Level
Root Administrator
Hello,
We came a few time with this issues without fouding a solution...
When we terminate an account with deleting the zone of this domain and after we try to access the deleted domaine we have been redirected to the first cpanel domain list on the same server...
Could you let us know how we can fix that and maybe redirect to a cpanel default error page or maybe and special page that we can create telling that the domain is not hosted anymore here?
Thanks for your help
 

cPanelAnthony

Administrator
Staff member
Oct 18, 2021
1,051
106
118
Houston, TX
cPanel Access Level
Root Administrator
Hello! When you take a domain down, do you remove the DNS as well? If the DNS still routes, if someone tries to visit the domain via SSL, it will hit the server's IP address (via the DNS) and then load the first vhost on the server. Unfortunately, the best solution I am aware of would be to make sure the terminated domain no longer resolves.