Over a million developers have joined DZone.

Lightning Post: Dumping MS DNS to Bind

· DevOps Zone

The DevOps Zone is brought to you in partnership with Sonatype Nexus. The Nexus Suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today

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.


The DevOps Zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today

Topics:

Published at DZone with permission of Tom O'connor, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

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

{{ parent.tldr }}

{{ parent.urlSource.name }}