[Shell] 純文本查看 複制代碼
@echo ########################################
@echo 請以系統管理員身分執行
@echo 請耐心等候直到 請按任意鍵繼續. 顯示
@echo 请以系统管理员身分执行
@echo 请耐心等候直到 请按任意键继续. 显示
@echo ########################################
ipconfig /release
ipconfig /flushdns
ipconfig /renew
netsh int ip set dns
netsh winsock reset
net stop dnscache
net start dnscache
@echo ########################################
@echo 開始設置DNS
@echo 开始设置DNS
@echo ########################################
netsh interface ipv4 set dns name="乙太網路" static 1.1.1.1
netsh interface ipv4 add dns name="乙太網路" 1.0.0.1
netsh interface ipv6 set dns name="乙太網路" static 2606:4700:4700::1111
netsh interface ipv6 add dns name="乙太網路" 2606:4700:4700::1001
netsh interface ipv4 set dns name="乙太網路 2" static 1.1.1.1
netsh interface ipv4 add dns name="乙太網路 2" 1.0.0.1
netsh interface ipv6 set dns name="乙太網路 2" static 2606:4700:4700::1111
netsh interface ipv6 add dns name="乙太網路 2" 2606:4700:4700::1001
netsh interface ipv4 set dns name="乙太网路" static 1.1.1.1
netsh interface ipv4 add dns name="乙太网路" 1.0.0.1
netsh interface ipv6 set dns name="乙太网路" static 2606:4700:4700::1111
netsh interface ipv6 add dns name="乙太网路" 2606:4700:4700::1001
netsh interface ipv4 set dns name="乙太网路 2" static 1.1.1.1
netsh interface ipv4 add dns name="乙太网路 2" 1.0.0.1
netsh interface ipv6 set dns name="乙太网路 2" static 2606:4700:4700::1111
netsh interface ipv6 add dns name="乙太网路 2" 2606:4700:4700::1001
netsh interface ipv4 set dns name="Wi-Fi" static 1.1.1.1
netsh interface ipv4 add dns name="Wi-Fi" 1.0.0.1
netsh interface ipv6 set dns name="Wi-Fi" static 2606:4700:4700::1111
netsh interface ipv6 add dns name="Wi-Fi" 2606:4700:4700::1001
@echo ########################################
ipconfig
pause