请问更改hosts后还需要做什么?
Tofloor
poster avatar
jyqing
deepin
2016-07-20 18:02
Author
我更改了github上的hosts,但还是不行而且在终端中sudo无法解析主机,请问应该怎么做?
Reply Favorite View the author
All Replies
avatar
yping
deepin
2016-07-20 18:25
#1
要科学上网不如直接下个lantern。
为什么不是改本地的hosts,还是我理解错了?
Reply View the author
avatar
moli3
deepin
2016-07-20 18:30
#2
1、sudo apt install dnsmasq
2、sudo vim /etc/dnsmasq.conf ======> 添加内容addn-hosts=/path_to/hosts
3、sudo systemctl restart dnsmasq.conf
4、sudo vim /etc/resolv.conf ======>修改内容为nameserver 127.0.0.1
5、sudo chattr +i /etc/resolv.conf

按照上面步骤做,即可在deepin上生效。
Reply View the author