Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
修改/etc/hosts dns修改不了
Experiences and Insight
852
views ·
7
replies ·
To
floor
Go
zifeng
deepin
2017-09-29 20:29
Author
sudo vi /etc/hosts 添加baidu.com 测试域名 到本地
重启网卡
打开百度还是这样..
dns没生效, 重启也没用 ..
使用的chrome浏览器
Reply
Like 0
Favorite
View the author
All Replies
Lyvnee
deepin
2017-09-29 20:44
#1
chrome貌似有DNS缓存
Reply
Like 0
View the author
zifeng
deepin
2017-09-29 20:44
#2
https://bbs.deepin.org/post/146152
chrome貌似有DNS缓存
怎么清除?
Reply
Like 0
View the author
zifeng
deepin
2017-09-29 20:46
#3
https://bbs.deepin.org/post/146152
chrome貌似有DNS缓存
貌似全清理了,也然并卵
Reply
Like 0
View the author
firedrake
deepin
2017-09-29 20:54
#4
你访问的是
https://bbs.deepin.org/module
,而不是 baidu.com。
而你的 hosts 设置的是 baidu.com
Reply
Like 0
View the author
woodelf
deepin
2017-09-29 20:54
#5
baidu的FQDN是www.baidu.com,你在浏览器里面输入baidu.com也会自动重定向到www.baidu.com。
所以你应该添加的是:
127.0.0.1 www.baidu.com
Copy the Code
具体的可以等网络大神解释原理。
来自:Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 (zh-CN)
——2017/9/29 下午12:54:09
Reply
Like 0
View the author
Lyvnee
deepin
2017-09-29 21:46
#6
楼上的解释合理
Reply
Like 0
View the author
herdde
deepin
2017-09-29 22:02
#7
sudo systemctl restart NetworkManager
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[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
Вы настраиваете внешний вид Deepin?
screenshot problem
Error when installing ms edge browser
Как установить xDroid (麟卓卓懿) на Deepin 25
Popular Events
More
重启网卡
打开百度还是这样..
dns没生效, 重启也没用 ..
使用的chrome浏览器