Export Reverse DNS PTR Records

As Technet Gallery is retiring so moving the code to Git Hub. (click below github download link for this script)

Export Reverse DNS PTR Records

Someone recently contacted me if I can assist them in exporting the PTR records in csv format, they have already tried

DNSCMS /Exportzone or /enumrecords but getting the last octave of the ip address.

e.g.

for a zone 154.10.in-addr.arpa, they were getting

1.100                   PTR           zzzhostname

Which is supposed to be 10.154.100.1

 

So here we go again, Powershell will come to rescue, below script was written that just needs input as DNS server name & offcourse we need

DNS module which can be downloaded from http://dnsshell.codeplex.comI have pockaged it inside the script folder so we don’t have to worry.

Download & extract the zip file from above:

Capture

Tech Wizard

https://techwizard.cloud

https://syscloudpro.com/

PowerShell Cheat Book

One thought on “Export Reverse DNS PTR Records

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s