Windows – Export Windows Reverse DNS Records into Bind files

binddomain-name-systemwindows

Is there a way to export DNS Reverse lookup entries from a Windows Server 2003 box running dnsmgmt into a reverse zone file that can be used by a Unix server running Bind?

If not, is there a way to automate the exportation of the reverse DNS information into text files so I can hack something up in Perl?

Best Answer

You could use the DNSCMD utility from the Windows Support Tools to export the zones using the /ZoneExport parameter. The export is a little quirky, because it exports to the %windir%\system32\dns directory on the server hosting the zones.

I'm not certain the format is exactly BIND format, but it's close. You could get it the rest of the way with a script fairly easily.