Thursday, March 30, 2017

Enumerate and Check DNS Records between two Windows DNS Servers

I love powershell scripting as I like games. Today, I finished up the script that I've been writing these days which is the checker of DNS records between two DNS servers. Powershell DNS Client module is only available from Windows 8, Server 2012/R2, which makes powershellers easy for dns query & administration. But as I want to include the old server 2008 in this scenario, I scripted the 'nslookup' command in this script.


You will just need to put the -DestinationServer parameter for the server you want to query. Also, the records of local dns server will be enumerated.
Open the powershell console in elevated mode and run the following command to the script.
.\Check_DNS_Records_Status -DestinationServer  myServerNameOrIP | ft -auto