We help IT Professionals succeed at work.

Finding machines using a specific DNS server

888 Views
1 Endorsement
Last Modified: 2017-03-27
Is there a way to find out what machines are using a specific DNS server? We are switching servers and want to make sure any static assigned machines are not using the old servers anymore.
Comment
Watch Question

Team Lead RRS Desk
Top Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2014
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Mohammed KhawajaManager - Infrastructure:  Information Technology
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
CERTIFIED EXPERT
Top Expert 2014

Commented:
There's a caveat with #4 above - Get-DNSClientServerAddress is only available on Win8 and newer.
Mohammed KhawajaManager - Infrastructure:  Information Technology
CERTIFIED EXPERT

Commented:
Good point, I run Windows 10 and didn't even think of OS supported by different versions.  What you could do is change the powershell command to "ipconfig /all > \\server\share\%computername%.txt

You would have to manually check each text file as if you do a find for string DNS, it will always give you the primary server name.  Secondary server name is in the next line.
Todd NelsonSystems Administrator
CERTIFIED EXPERT
Top Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION