Firstly, backup the existing zone to a zone file. Resulting file will always be placed in C:\Windows\system32\dns
- this can't be controlled:
$ dnscmd /zoneexport myzone.com myzone-backup-file.zone
To restore the zone, firstly move our myzone-backup-file.zone
file back into C:\Windows\system32\dns
, then:
$ dnscmd /zoneadd myzone.com /primary /file myzone-backup-file.zone /load
Finally, convert DNS local primary zone to an AD integrated zone (stupidly, this must be done over two commands):
$ dnscmd /zoneresettype myzone.com /dsprimary