突然,Firefox和Iceweasel无法查找DNS,但/etc/hosts
工作正常。其他程序也可以正常工作:konqueror
、wget
和curl
。
我已经通过了http://mzl.la/1xKrMnN火狐不能加载网站,但其他浏览器可以,没有防火墙阻止火狐从DNS,IPv6禁用,没有代理和DNS预取。
$ egrep "network.dns.dis|proxy" ~/.mozilla/firefox/*.default/prefs.js
user_pref("network.dns.disableIPv6", true);
user_pref("network.dns.disablePrefetch", true);
user_pref("network.proxy.type", 0);
我试过reboot
,reinstall
,purge & install
。以新定义的用户身份登录也不起作用。然后:
mkdir debug ; cd debug
strace -o f -ff firefox http://example.org/
grep -rn example.org f*
有什么可以与之相比的
strace -o k -ff konqueror http://example.org/
grep -rn example.org k*
我已经翻阅了这些文件,但还没有找到任何冒烟的枪。从现在开始去哪里?重新安装电脑?
发布于 2016-10-22 13:59:22
您的/etc/hosts
太大了:
$ ls -l /etc/hosts
-rw-r--r-- 1 root root 5128 Oct 2 12:20 /etc/hosts
这里有个虫子。如果文件大小为1562字节,Firefox可以读取它。如果它是1588字节或更多的Firefox不能使用DNS。
结论:要么不使用火狐,要么将/etc/hosts
减少到1562字节。
此错误适用于Firefox版本45.4.0。
https://unix.stackexchange.com/questions/318134
复制相似问题