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.com , I have pockaged it inside the script folder so we don’t have to worry.
Download & extract the zip file from above:
Tech Wizard
Great! just what I Needed. (In your published code, please don’t use aliases 😉 )
Its my old published code, as a scripter we improve as times goes by , now a days I avoid all aliases by fixing with isesteroids in the end 🙂