Is there a way to search the entire forward lookup zone in Windows 2008 R2 DNS server?
I would like to search both the
NAME and the
RDATA of all the resource records for a substring.
You can use
You can then search the output of that for your string(s).
or dump it to a file and parse the file with whatever tool you like
There's a good article on doing something similar here.
And, as voretaq points out, yes it does work with non-AD-integrated zones.
For an AD-Integrated zone you should be able to do this via an LDAP search.
I'm not sure about the LDAP schema MS uses, but it's going to involve a filter something like
For non-integrated zones it may be easier to dump the zone file in BIND format and grep through it, or trigger an AXFR and grep through that. I'm not aware of anything in the Windows tools that lets you do a substring search.