DNS问题
Tofloor
poster avatar
159******35
deepin
2014-07-19 23:18
Author
使用相同的dns地址在windows上可以使用,但在deepin上却无法使用
Reply Favorite View the author
All Replies
fasheng
deepin
2014-07-20 04:17
#1
网络连接编辑页面设置的DNS为备用DNS,可以点击 “i”按钮查看已激活连接的具体信息,或者在终端输入 “nm-tool”,若要设置主DNS需要编辑 /etc/resolv.conf
Reply View the author
159******35
deepin
2014-07-20 05:01
#2
网络连接编辑页面设置的DNS为备用DNS,可以点击 “i”按钮查看已激活连接的具体信息,或者在终端输入 “nm-tool”,若要设置主DNS需要编辑 /etc/resolv.conf
具体要如何编辑呢
Reply View the author
fasheng
deepin
2014-07-20 23:15
#3
NetworkManager 0.9.8.x 不支持设置主 DNS,需要用户手动编辑 /etc/resolvconf 目录下的配置文件,例如要设置主 DNS 为 “8.8.8.8”,输入下列命令即可:
echo "nameserver 8.8.8.8" | sudo tee -a  /etc/resolvconf/resolv.conf.d/head
sudo resolvconf -u

设置完成后,NetworkManager 并不能准确探知,若要验证是否设置成功,可以查看 /etc/resolv.conf 文件内容:
cat /etc/resolv.conf

http://wiki.linuxdeepin.com/index.php?t ... 4.B8.BBDNS
Reply View the author
zamffkfc
deepin
2014-07-21 16:00
#4
修改这个文件重启无效,,呵呵,,自己百度或Google吧
Reply View the author
fasheng
deepin
2014-07-21 23:17
#5
应该编辑 /etc/resolvconf/resolv.conf.d/head,而不是 /etc/resolv.conf
Reply View the author
159******35
deepin
2014-07-22 01:45
#6
应该编辑 /etc/resolvconf/resolv.conf.d/head,而不是 /etc/resolv.conf
谢谢 登陆是可以登陆了 但是速度还是比windows上的慢 不知道是什么原因
windows上是用ie11
deepin2014上用的firefox30
Reply View the author
fasheng
deepin
2014-07-22 01:49
#7
好的,已经记录,会进一步调试。
Reply View the author
159******35
deepin
2014-07-22 02:51
#8
好的,已经记录,会进一步调试。
使用的主dns是42.120.21.30
设置了dns之后访问网页的速度明显变慢,加载网页也特别的慢
Reply View the author
fasheng
deepin
2014-07-22 04:46
#9
应该与浏览器查询DNS(DNS lookups)的方式有关,chrome专门针对这种情况做了优化,不过firefox上也有类似的插件“Speed DNS”,安装后应有所改善。

https://addons.mozilla.org/en-US/firefo ... speed-dns/
Reply View the author
風銜霜
deepin
2014-07-22 04:56
#10
[quote]好的,已经记录,会进一步调试。
使用的主dns是42.120.21.30
设置了dns之后访问网页的速度明显变慢,加载网页也特别的慢[/quote]
OpenerDNS...我在我在手机上用它也不觉得快。。电脑还是114+攻阿根廷
Reply View the author