C盤下新建目錄dns,目錄下建立一個dnslist.txt文件,每行一個域名,例 bash
aaa.com bbb.com ccc.com
2. dns目錄下,新增一個adddns.cmd的文件,內容以下: @echo on c: cd c:\dns for /f %%i in (dnslist.txt) do dnscmd . /ZoneAdd "%%i" /dsforwarder 152.104.228.243 pause exit
3. 執行adddns.cmd便可。ide