We would like to delete all the unused resource records from our DNS server (Windows DNS server on Win2k16). This is an DNS integrated with domain controller. so the aging and scavenging options are available for dynamic records.
Windows aging/scavenging doesn’t touch static records.
Basically I would like to delete everything that hasn’t been requested for 2 months. I can only think of enabling some logging (on the DNS software itself) in order to log all requests. Then after two months I’ll parse the log and do a kind of “diff” with the raw zone file in order to figure out the difference and delete the records not present in the log.
My question is whether or not there a better way or tool available to accomplish this?