-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitDNS.bat
51 lines (50 loc) · 3.44 KB
/
initDNS.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@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 92.87.109.134, 170.64.147.31, 118.3.227.163, 58.185.92.216, 8.8.8.8
netsh interface ipv4 set dns name="以太网" static 103.219.21.115 primary
netsh interface ipv4 add dns name="以太网" addr=162.158.165.137 index=2
netsh interface ipv4 add dns name="以太网" addr=162.158.165.136 index=3
netsh interface ipv4 add dns name="以太网" addr=8.8.8.8 index=4
netsh interface ipv4 add dns name="以太网" addr=74.125.179.158 index=5
netsh interface ipv4 add dns name="以太网" addr=172.253.237.22 index=6
netsh interface ipv4 add dns name="以太网" addr=74.125.179.146 index=7
netsh interface ipv4 add dns name="以太网" addr=172.253.5.18 index=8
netsh interface ipv4 add dns name="以太网" addr=172.253.5.26 index=9
netsh interface ipv4 add dns name="以太网" addr=74.125.179.152 index=10
netsh interface ipv4 add dns name="以太网" addr=192.178.36.145 index=11
netsh interface ipv4 add dns name="以太网" addr=74.125.179.156 index=12
netsh interface ipv6 set dns name="以太网" static 2400:cb00:464:1024::a29e:a589 primary
netsh interface ipv6 add dns name="以太网" addr=2400:cb00:464:1024::a29e:a588 index=2
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4005:c08::121 index=3
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4005:c03::12a index=4
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4005:c02::128 index=5
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4005:c02::12e index=6
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4005:c03::12b index=7
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4005:c00::129 index=8
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4008:c05::122 index=9
netsh interface ipv6 add dns name="以太网" addr=2404:6800:4008:c05::124 index=10
netsh interface ipv4 set dns name="WLAN" static 103.219.21.115 primary
netsh interface ipv4 add dns name="WLAN" addr=162.158.165.137 index=2
netsh interface ipv4 add dns name="WLAN" addr=162.158.165.136 index=3
netsh interface ipv4 add dns name="WLAN" addr=8.8.8.8 index=4
netsh interface ipv4 add dns name="WLAN" addr=74.125.179.158 index=5
netsh interface ipv4 add dns name="WLAN" addr=172.253.237.22 index=6
netsh interface ipv4 add dns name="WLAN" addr=74.125.179.146 index=7
netsh interface ipv4 add dns name="WLAN" addr=172.253.5.18 index=8
netsh interface ipv4 add dns name="WLAN" addr=172.253.5.26 index=9
netsh interface ipv4 add dns name="WLAN" addr=74.125.179.152 index=10
netsh interface ipv4 add dns name="WLAN" addr=192.178.36.145 index=11
netsh interface ipv4 add dns name="WLAN" addr=74.125.179.156 index=12
netsh interface ipv6 set dns name="WLAN" static 2400:cb00:464:1024::a29e:a589 primary
netsh interface ipv6 add dns name="WLAN" addr=2400:cb00:464:1024::a29e:a588 index=2
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4005:c08::121 index=3
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4005:c03::12a index=4
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4005:c02::128 index=5
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4005:c02::12e index=6
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4005:c03::12b index=7
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4005:c00::129 index=8
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4008:c05::122 index=9
netsh interface ipv6 add dns name="WLAN" addr=2404:6800:4008:c05::124 index=10
@REM pause