www.jayntguru.com

August 25, 2010

AD: find DNS records that do not age

Filed under: computer geek stuff,scripting — Tags: , , , , — jayntguru @ 3:03 pm

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.

Powered by WordPress