这里是普通文章模块栏目内容页
Windows Server 批量创建DNS区域及记录

Windows Server 批量创建DNS区域及记录(使用bat脚本)

1.添加DNS正向区域
dnscmd /zoneadd 13sy-001.com /primary /file 13sy-001.com.zone
dnscmd /zoneadd 13sy-002.com /primary /file 13sy-002.com.zone
dnscmd /zoneadd 13sy-003.com /primary /file 13sy-003.com.zone
dnscmd /zoneadd 13sy-004.com /primary /file 13sy-004.com.zone
dnscmd /zoneadd 13sy-005.com /primary /file 13sy-005.com.zone
dnscmd /zoneadd 13sy-006.com /primary /file 13sy-006.com.zone
dnscmd /zoneadd 13sy-007.com /primary /file 13sy-007.com.zone
dnscmd /zoneadd 13sy-008.com /primary /file 13sy-008.com.zone
dnscmd /zoneadd 13sy-009.com /primary /file 13sy-009.com.zone


2.添加DNS A记录
dnscmd /recordadd 13sy-001.com .13sy-001.com. A 192.168.10.2
dnscmd /recordadd 13sy-002.com .13sy-002.com. A 192.168.10.2
dnscmd /recordadd 13sy-003.com .13sy-003.com. A 192.168.10.2
dnscmd /recordadd 13sy-004.com .13sy-004.com. A 192.168.10.2
dnscmd /recordadd 13sy-005.com .13sy-005.com. A 192.168.10.2
dnscmd /recordadd 13sy-006.com .13sy-006.com. A 192.168.10.2
dnscmd /recordadd 13sy-007.com .13sy-007.com. A 192.168.10.2
dnscmd /recordadd 13sy-008.com .13sy-008.com. A 192.168.10.2
dnscmd /recordadd 13sy-009.com .13sy-009.com. A 192.168.10.2
dnscmd /recordadd 13sy-010.com .13sy-010.com. A 192.168.10.2
我在这里添加的是 泛域名解析 ,可以根据实际情况编写