Posts Tagged ‘scavenging’

AD: find DNS records that do not age

August 25, 2010

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!

Note: I had a little help from Marcus on this. He has a post similar here.