对本机进行如下的设置,效果并不明显
sudo apt-get install dnsmasq
sudo vim /etc/dnsmasq.conf
将文件中的#listen-address
修改为listen-address=127.0.0.1
,保存退出,sudo vim /etc/resolv.conf
在文件第一行添加nameserver 127.0.0.1
sudo apt-get install dnsmasq
sudo vim /etc/dnsmasq.conf
#listen-address
修改为 listen-address=127.0.0.1
,保存退出,sudo vim /etc/resolv.conf
nameserver 127.0.0.1
转载于:https://www.cnblogs.com/huizhu135/p/6043079.html