-
Notifications
You must be signed in to change notification settings - Fork 0
/
initDNS.bat
18 lines (18 loc) · 881 Bytes
/
initDNS.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
@echo off
ipconfig /flushdns
:: 修改 ip mask getaway
:: netsh interface ip set address "以太网 2" static 10.102.220.223 255.255.254.0 10.102.220.1
:: 修改 dns
netsh interface ip add dns name = "以太网" addr = 162.252.172.57
netsh interface ip add dns name = "以太网" addr = 149.154.159.92
netsh interface ip add dns name = "以太网" addr = 8.8.8.8
netsh interface ip add dns name = "以太网" addr = 8.8.4.4
netsh interface ip add dns name = "以太网" addr = 1.0.0.1
netsh interface ip add dns name = "以太网" addr = 1.1.1.1
netsh interface ip add dns name = "WLAN" addr = 162.252.172.57
netsh interface ip add dns name = "WLAN" addr = 149.154.159.92
netsh interface ip add dns name = "WLAN" addr = 8.8.8.8
netsh interface ip add dns name = "WLAN" addr = 8.8.4.4
netsh interface ip add dns name = "WLAN" addr = 1.0.0.1
netsh interface ip add dns name = "WLAN" addr = 1.1.1.1
@REM pause