批量转移Windows Server的DNS设置

一个简单的办法,无需重启服务器即可实现批量转移.

1. 将旧服务器中需要迁移的DomainName.dns 文件 (在 %SYSTEM%\System32\dns 中) 复制到新的服务器的 %SYSTEM\System32\dns 目录中

2. 编写批处理脚本,每行为一个域名,格式为

 
dnscmd localhost /zoneadd somedomain.com /primary /file somedomain.com.dns /load
 
例如 迁移 google.cn
 
dnscmd localhost /zoneadd google.cn /primary /file google.cn.dns /load
 
3. 在新服务器上执行脚本即可.
原文地址:https://www.cnblogs.com/lei1016cn/p/2098074.html