First, you must have installed on your Windows 2008 server DNS Server Role. If you don’t installed it use this:
(Server Manager > Roles Summary > Add Roles > DNS Server)Now, you can start DNS Manager clicking on icon or command %SystemRoot%\system32\mmc.exe %SystemRoot%\system32\dnsmgmt.msc /s
Just replace with your values:
- [your_server_name] - your server name
- [your_domain_name] - your domain (must repeat this for every domain – Export and Import)
- [your_primary_ip] - because we were importing secondary zones, we needed to specify primary IP address (primary zone)
- [your_custom_folder] - your custom folder where yo want to move exported domains and to import from
EXPORT SPECIFIC DNS ZONE
dnscmd [your_server_name] /ZoneExport [your_domain_name] [your_domain_name].txt
move /Y c:\Windows\System32\dns\[your_domain_name].txt [your_custom_folder]
IMPORT SPECIFIC DNS ZONE
move /Y [your_custom_folder]\[your_domain_name].txt c:\Windows\System32\dns\
dnscmd [your_server_name] /ZoneAdd [your_domain_name] /Secondary
[your_primary_ip] /file [your_domain_name].txt /load
