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

Download the blueprint that can take a company of any maturity level all the way up to enterprise-scale continuous delivery using a combination of Automic Release Automation, Automic’s 20+ years of business automation experience, and the proven tools and practices the company is already leveraging.

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.


Download the ‘Practical Blueprint to Continuous Delivery’ to learn how Automic Release Automation can help you begin or continue your company’s digital transformation.

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.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}