本帖最后由 impk 于 2019-7-23 12:32 编辑
- @echo off
- color 2F
-
- @echo.
- @echo.
- @echo. 1. 国外混合DNS
- @echo.
- @echo. 2. 国内混合DNS
- @echo.
- @echo. 3. 云耀DNS
- @echo.
- @echo. 4. 谷歌DNS
- @echo.
- @echo. 5. 114DNS
- @echo.
- @echo. 6. 阿里DNS
- @echo.
- @echo.
- echo. 输入序号选择DNS:
-
- set /p id=
- if "%id%"=="1" goto 国外混合DNS
- if "%id%"=="2" goto 国内混合DNS
- if "%id%"=="3" goto 云耀DNS
- if "%id%"=="4" goto 谷歌DNS
- if "%id%"=="5" goto 114DNS
- if "%id%"=="6" goto 阿里DNS
-
- :国外混合DNS
- netsh interface ip set dns name="本地连接" source=static addr=1.1.1.1
- netsh interface ip add dns name="本地连接" addr=8.8.8.8
- netsh interface ip set dns name="无线网络连接" source=static addr=1.1.1.1
- netsh interface ip add dns name="无线网络连接" addr=8.8.8.8
- exit
-
- :国内混合DNS
- netsh interface ip set dns name="本地连接" source=static addr=114.114.114.114
- netsh interface ip add dns name="本地连接" addr=223.5.5.5
- netsh interface ip set dns name="无线网络连接" source=static addr=114.114.114.114
- netsh interface ip add dns name="无线网络连接" addr=223.5.5.5
- exit
-
- :云耀DNS
- netsh interface ip set dns name="本地连接" source=static addr=1.1.1.1
- netsh interface ip add dns name="本地连接" addr=1.0.0.1
- netsh interface ip set dns name="无线网络连接" source=static addr=1.1.1.1
- netsh interface ip add dns name="无线网络连接" addr=1.0.0.1
- exit
-
- :谷歌DNS
- netsh interface ip set dns name="本地连接" source=static addr=8.8.8.8
- netsh interface ip add dns name="本地连接" addr=8.8.4.4
- netsh interface ip set dns name="无线网络连接" source=static addr=8.8.8.8
- netsh interface ip add dns name="无线网络连接" addr=8.8.4.4
- exit
-
- :114DNS
- netsh interface ip set dns name="本地连接" source=static addr=114.114.114.114
- netsh interface ip add dns name="本地连接" addr=114.114.115.115
- netsh interface ip set dns name="无线网络连接" source=static addr=114.114.114.114
- netsh interface ip add dns name="无线网络连接" addr=114.114.115.115
- exit
-
- :阿里DNS
- netsh interface ip set dns name="本地连接" source=static addr=223.5.5.5
- netsh interface ip add dns name="本地连接" addr=223.6.6.6
- netsh interface ip set dns name="无线网络连接" source=static addr=223.5.5.5
- netsh interface ip add dns name="无线网络连接" addr=223.6.6.6
- exit
复制代码
|