Is there a way to run a report to see what DNS servers are being used by computers?
I need to see what dns servers computers on the network are assigned to use. Is there a way to query the registry and report the results.
0
Comments
Hi Kevin,
You can do this in PDQ Inventory if you are using a Pro or Enterprise license and using a custom scan profile.
I've attached a profile that will scan `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\`
Once you import this scan profile called "DNS scan" you should be able to scan your machines and pull that information from the registry of your target machines.
Now we need to take that info and put it into a report. I'm attaching a report that you can import that will show the columns of computer name and registry value called "DNS Entries".
I've added a Filter saying that I want to find the Value Name containing NameServer (where the DNS entries are stored). This will show you all the DNS entries on one line for each adapter that you have present.
Jason
Do you mean additional/manually configured DNS servers? Because the usual practice is that these are assigned by the DHCP server and you are in control of that. You can run the "netsh interface ipv4 show dnsservers" command on each computer and collect the information in a shared folder. Like this:
netsh interface ipv4 show dnsservers >\\server\share\dns-%computername%.txt
-Jason. Thanks for your help. That worked fine.
Another method.
I'm trying to get the same results that Kevin was. Could I get a copy of the custom scan profile?
Jason, can I get a copy of that scan profile? I am trying to do the same thing.
Thanks!
Dwayne
I believe these will do what you are looking for.
NameServer shows static entries and DhcpNameServer shows entries set by DHCP.
DNS Scan:
DNS Entries:
Thanks, Colby. That worked PERFECTLY! Really appreciate it!
Colby, you just saved my butt! Thank you so much!
4 years later and this scan profile is still helping people!