DNS Server Reports

Hi , can we take reports from windows DNS Servers as to which Machine is  using DNS Server for quries.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
You can not directly do this from DNS management console. To know what DNS your client are using you need to reference the DNS search order in the Network properties to see what IP's are present. This would be the DNS servers the users are using.

If you are using DHCP then you can easily tell this info for all of your DHCP users just by looking at the scope.

If you are looking to check on servers DNS search order then you can use powershell to accomplish this. I have a script that i use all the time to report back when DNS IP are listed in the search order. See script below...

The command below will search a list of computers from a TXT file and find IPaddress, DNSServerSearchOrder and DNSHostName where the IP address is like 10.10.* (you can change this to match whatever your IP schema is internally). I used this so that network adapters like the IPv6 tunneling adapter does not get queried.

Computers = get-content "c:\computers.txt"
foreach ($Comp in $Computers) {
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -ComputerName $Comp |
? {$_.IPAddress -like "10.10.*"} |
Select IPAddress, DNSServerSearchOrder, DNSHostName |
out-file c:\results.txt -Append

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mylivesoulAuthor Commented:

how to execute this script.

Venugopal NCommented:
Open Powershell ISe and copy the above line, then save it as filename.ps1

Then from the powershell command prompt, goto to the right folder it has the saved file.( example if you have saved under C:\temp, use the cd c:\temp)

Then run the filename.ps1 from the powershell command prompt.
Seth SimmonsSr. Systems AdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.