Link to home
Start Free TrialLog in
Avatar of Arabsoft-ACS
Arabsoft-ACSFlag for Saudi Arabia

asked on

list all DNS servers

Dear All,

I am looking for a way to list all DNS servers I have and the type of zones inside each server?

Thanks
Avatar of Chris Dent
Chris Dent
Flag of United Kingdom of Great Britain and Northern Ireland image


You can get a little by pulling the list of holders for ForestDNSZones. "nslookup forestdnszones.YourRootDomain.com" will do, you can look at the partition holders list as well. It's not exhaustive though, it will only tell you about 2003+ Domain Controllers running the DNS service.

Beyond that, the only way would be to examine each server for the DNS service; WMI works, but it won't be fast if you have a large number of servers.

Once you have the servers, types of zone can be found using WMI, or by using "dnscmd /EnumZones".

Chris
ASKER CERTIFIED SOLUTION
Avatar of Andrej Pirman
Andrej Pirman
Flag of Slovenia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

The author has a lot of posts in the AD areas about auditing, hence the MS assumptions in my original post :)

Chris
Hence the difference between your and mine answer, since I was "just passing by", looking the question only. Hope we covered any situation he was asking for :)