Export DNS Zone File from Windows Server

We have public DNS for one domain hosted on a Windows DNS Server... We need to move to public DNS provider. Typically with any public hosted DNS such as GoDaddy, Rote 53, or DNS Made Easy when we transfer DNS from one provider to another we just export a zone file, and import the zone file to the new provider.

How do we export a zone file from Windows DNS? See below for example of a typical zone file I would expect to see from any public hosted DNS provider export. How do I get the same from Windows server?

http://help.dnsmadeeasy.com/managed-dns/domain/import-records-zone-file/
CommGuyNEAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MaheshArchitectCommented:
For Windows DNS server, there is only one way to export zone, use dnscmd command line built-in tool from elevated prompt

dnscmd DNSserverhostname /zoneexport "mydomain.com" "mydomain.dns"

Copy this file to another DNS server / hosting and import it
U may change extension to .txt if required
0
MichelangeloSystem Administrator / PostmasterCommented:
Export-DnsServerZone -Name "western.contoso.com" -FileName "exportedcontoso.com"

Open in new window

Export dns zone in powershell
What windows version your Dns has?
Usable by windows 2012 r2 towards a 2008 r2 dc
Check the format of the exported data

ou can also use
dnscmd DNSSERVERNAME /ZoneExport orage.com dns.txt

Open in new window

Note: above command doesn’t take alternative path for export file It just saves in c:\windows\system32\dns

See here for guidance
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MichelangeloSystem Administrator / PostmasterCommented:
Answer provided along with relevant examples/reference
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.