首页 > Windows开发 > 详细

Windows 批处理设置dns ,解决能上qq不能开网页

时间:2016-09-03 22:30:27      阅读:197      评论:0      收藏:0      [点我收藏+]

对于windows 7 

1 @echo off
2 netsh interface ip set dns "本地连接" static 114.114.114.114 primary
3 netsh interface ip add dns "本地连接" 8.8.8.8
4 ipconfig /flushdns

对于windows 10

1 @echo off
2 netsh interface ip set dns "以太网" static 223.5.5.5 primary
3 netsh interface ip add dns "以太网" 8.8.8.8
4 ipconfig /flushdns

新建文本文件,将以上对应的代码复制粘贴进入。 保存后修改扩展名(即格式) txt 为 bat

Windows 批处理设置dns ,解决能上qq不能开网页

原文:http://www.cnblogs.com/lonkiss/p/5838069.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!