用netsh修改DNS的时候出现拒绝访问,怎么解决?

来源:百度知道 编辑:UC知道 时间:2024/05/15 10:20:53
netsh interface ip>set dns name="本地连接" source=static addr=202.96.128.166 register=PRIMARY
输入后出现“拒绝访问”

这样怎么解决

把下面的命令保存成 bat 文件,运行试试,应该,就可以了!
netsh
interface
ip set address "本地连接" static 192.168.1.233 255.255.255.0 192.168.1.1 1
netsh interface ip set dns "本地连接" static 202.99.160.68 primary
netsh interface ip add dns "本地连接" 202.99.166.4

(注意:ip/DNS 随情况而定)