We are about to enable scavenging for DNS here at work and needed to get a list of DNS entries that were set to not scavenge. I did it like this:
- dnscmd /zoneprint dnszone.com >c:joe.txt
- findstr /v "[" c:joe.txt >c:noage.txt
The text file you get at the end has the entries that don’t age. That’s it!