Friday, April 15, 2016

Check Multiple Forward and Reverse DNS records by Powershell

A few days ago, I had to query over 100 DNS records whether forward & reverse records are working fine. nslookup over 100 records is time-consuming and daunting task for a system admin. So, I decided to write the powershell script to automatic this task. Hope it useful to others.

For beginners new to powershell,
1) Copy the below code & put into file that has .ps1 extension, (i.e,  Find_DNS_Forward_Reverse.ps1)

2) Put the host names in the hostnames.txt  in the same directory as powershell script.

3) Run the script, it will ask for input parameters.
Code as below:



2 comments:

  1. Interesting Article. Hoping that you will continue posting an article having a useful information. Find DNS records

    ReplyDelete
  2. Nice Blog, Best microsoft office 2010 professional for Mac Home and Business edition is a powerful suite which fulfils the productivity applications, written for Mac OS X.

    ReplyDelete

Note: Only a member of this blog may post a comment.