安装dnsmasq
命令:apt-get install dnsmasq
编辑dnsmasq的配置文件
命令:gedit /etc/dnsmasq.conf
找到下面这一项
#resolv-file=
用下面的一条语句替换
resolv-file=/etc/resolv.dnsmasq.conf
确保你没有更改过/etc/resolv.conf文件,如果改过,恢复原状
然后执行命令
cp /etc/resolv.conf /etc/resolv.dnsmasq.conf
然后编辑resolv.conf
命令:gedit /etc/resolv.conf
将其中的域名服务器全部去掉,如果不想把原配置删除完全可以用#将原来的注释掉也可以的。最后保存,退出。加入以下这行
nameserver 127.0.0.1
效果相当理想,至少我家里机器是明显改善了一些。 哈哈 幸福冲浪去啦……
评论