I'm tasked with migrating an old DNS server running on Windows Server 2003 to a new Windows Server 2025 installation. The dnscmd command isn't available, and the DNS zones aren't Active Directory (AD) integrated. What's the simplest method to transfer all the zones to the new server? I appreciate any advice!
5 Answers
You could also transfer the DNS zones to Bind9 or use the zone transfer feature built into Windows AD. However, if you're looking at the files directly, they're stored in the %SystemRoot%system32Dns directory as plain text. You can parse these files using PowerShell to help migrate all the entries without losing any formatting or comments.
One option is to enable AXFR (zone transfer), then use a tool like 'dig' to dump the zone data directly from the old server to the new one. This way, you'll get all the records transferred in one go.
Copying the zone files directly is often the best route since zone transfers can strip extra info like comments and structure. If you're considering using BIND, remember to run checks using 'named-checkconf' and 'named-checkzone' to ensure everything is set up correctly.
If it's a domain setup, the DNS management tools in newer systems should still let you export the zones directly. This can save you a lot of time if copying by hand isn't your style!
Honestly, just creating a fresh DNS zone on the new server is sometimes the best approach. It allows you to clean up the records and organize everything right from the start. It's a bit of work, but you'll end up with a better setup in the long run!

Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures