Is there a way (preferably powershell, of course!) to find all DNS servers in an AD forest? Not domain controllers running DNS but ANY Windows servers running DNS. Here is the situation.I have one root domain to which I am adding a new domain controller.
![Dns Dns](https://i.ytimg.com/vi/uKRJyvFfEOk/maxresdefault.jpg)
![Dns server for windows 7 Dns server for windows 7](http://www.sevenforums.com/attachments/tutorials/16399d1379266393t-dns-addressing-how-change-windows-7-pic5.png)
There are roughly 20 child domains which should all have their dns servers set to forward to my root domain for unresolved queries. I need to change the forwarders on all DNS servers in the Forest (I've got that part figured out). However, I know that not all Domain Controllers in all of the domains are DNS servers and vice versa (not all DNS servers in the domains are domain controllers). So.anything that I can query to find all dns servers in the Forest (short of querying every server in the Forest for the existence of the DNS Server service?) I've searched but can't seem to find anything in wmi.
![Find Find](http://www.digitalcitizen.life/sites/default/files/gdrive/windows_dns/windows_dns_0.jpg)
Thanks, Nate. Hi Nate, As far as I know, there is no built-in feature to find all DNS server in Forest.
![Windows Windows](https://i.ytimg.com/vi/YgTHcRumqqU/maxresdefault.jpg)
Change your DNS Server in Windows 7 [How to] With Google launching their new DNS Server not long ago, aptly named; Google Public DNS, I've been playing around with my DNS server to see which is the quickest! This guide will show you how to change your DNS server and verify the settings in Windows 7. See here to test your DNS server.
You may try the following steps: 1. Run 'ipconfig /all >> server share ip.txt' on all clients to collect their IP settings which includes DNS settings. Configure a logon script or use PsExec 2.
![Settings Settings](https://www.howtogeek.com/thumbcache/648/248/7da74db72c3d44bc3733851045ae28cb/wp-content/uploads/2018/01/dns-settings-1.png)
After that, based on your environment, try 'findstr /c:'DNS Servers' server share ip.txt >> server share dns.txt' or 'findstr ^[1-9].[1-9] server share ip.txt >> server share dns.txt '. You can manually find all DNS server or script more to find all DNS. If you have any difficulties when you customizing the scripts, I suggest that you initial a new post in The Official Scripting Guys Forum! To get further support there. They are the best resource for scripting related problems.
For your convenience, I have list the link as followed. The Official Scripting Guys Forum! This posting is provided 'AS IS' with no warranties, and confers no rights. Hi Nate, As far as I know, there is no built-in feature to find all DNS server in Forest. You may try the following steps: 1. Run 'ipconfig /all >> server share ip.txt' on all clients to collect their IP settings which includes DNS settings.
Configure a logon script or use PsExec 2. After that, based on your environment, try 'findstr /c:'DNS Servers' server share ip.txt >> server share dns.txt' or 'findstr ^[1-9].[1-9] server share ip.txt >> server share dns.txt '. You can manually find all DNS server or script more to find all DNS. If you have any difficulties when you customizing the scripts, I suggest that you initial a new post in The Official Scripting Guys Forum!
To get further support there. They are the best resource for scripting related problems.
For your convenience, I have list the link as followed. The Official Scripting Guys Forum! This posting is provided 'AS IS' with no warranties, and confers no rights.