Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
请问更改hosts后还需要做什么?
Experiences and Insight
737
views ·
2
replies ·
To
floor
Go
jyqing
deepin
2016-07-20 18:02
Author
我更改了github上的hosts,但还是不行而且在终端中sudo无法解析主机,请问应该怎么做?
Reply
Like 0
Favorite
View the author
All Replies
yping
deepin
2016-07-20 18:25
#1
要科学上网不如直接下个lantern。
为什么不是改本地的hosts,还是我理解错了?
Reply
Like 0
View the author
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
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More