Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Lightning Post: Dumping MS DNS to Bind

DZone's Guide to

Lightning Post: Dumping MS DNS to Bind

· DevOps Zone ·
Free Resource

In response to accelerated release cycles, a new set of testing capabilities is now required to deliver quality at speed. This is why there is a shake-up in the testing tools landscape—and a new leader has emerged in the just released Gartner Magic Quadrant for Software Test Automation.

This is the first in a series of Lightning Posts, short snippets that I don't really have the time to write up into a full post, but they're interesting nonetheless.

Lightning Post 1: How to export DNS data from Microsoft DNS to a zone file.

"Why'd you wanna do that?" I hear you cry.

Well, it's entirely possible to use BIND (or PowerDNS, for that matter) as a DNS server instead of the integrated MS DNS service that's bundled with Windows Server.

When you create an Active Directory, a process creates some service records, like _ldap._tcp.ForestDnsZones.yourdomain.tld and so on.

Well, these aren't impossible to create by hand, but it's nice to have a dump for these things at least initially. 

So: 

Login as Administrator, and load up a Powershell console:

dnscmd YourDomainController.tld /ZoneExport YourDomain.fqdn.tld YourDmain.fqdn.tld.txt

Then you can look in %windir%/system32/dns/* and find the txt files  containing your zone data.

Done.


Gartner: Digital Transformation, DevOps, and the Future of Testing. Download Now! 

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}