Feb 25, 2005
17
0
151
Hi,

Does anyone know of a way to automatically remove dead DNS records from accounts that have been removed?

We have hundreds of DNS records on an old server but the accounts are no longer active.

Thanks
 

PlatinumServerM

Well-Known Member
PartnerNOC
Jul 10, 2005
400
3
168
New Jersey, USA
cPanel Access Level
Root Administrator
Once an account is removed, it should also remove the dns zone. If it is still there then something else is wrong.

You can use the Delete DNS zone link in whm and select multiple zones to delete them all at once.
 
Feb 25, 2005
17
0
151
What happened was we migrated accounts across to new servers but the old DNS zones were left in tact in for propagation.

Selecting the Delete DNS zone link would take forever due to the amount of accounts that still remain.

Is there anyway we can use a script to look up accounts within the cluster and if they are not present on the server they are deleted from the DNS?

Thanks for your reply