你是不是因 Ubuntu 下 FireFox 查询 DNS 的速度奇慢而折腾地够呛?
其实这不是 Firefox 的错,很多其他的Linux,Unix 系统也有同样的问题。
1,如果关闭 IPv6 并不能得到明显改善
2,再次安装 dnsmasq 也是徒劳无功。
3,试试把 avahi-daemon 服务关闭,你会得到空前变化。
avahi-daemon Avahi 是 zeroconf 协议的实现。它可以在没有 DNS 服务的局域网里发现基于 zeroconf 协议的设备和服务。它跟mDNS 一样。除非你有兼容的设备或使用 zeroconf 协议的服务,否则应该关闭它。现在用的基本都是DNS了。 更专业点讲就是The Avahi mDNS/DNS-SD daemon implements Apple’s Zeroconfarchitecture(also known as "Rendezvous" or "Bonjour"). The daemonregisters local IP addresses and static services using mDNS/DNS-SD andprovides two IPC APIs for local programs to make use of the mDNS recordcache the avahi-daemon maintains. avahi-daemon is a daemon which runs on client machines to performZeroconf service discovery on a network. avahi-daemon must be runningon systems that use Avahi for service discovery. Avahi-daemon shouldnot be running otherwise.
########################
Ubuntu 下关闭:sudo /etc/init.d/avahi-daemon stop
在 Ubuntu 中这个服务有可能无法关闭,最后通过卸载的方式干掉。
########################
Linux/unix:service avahi-daemon stop 配置开机启动服务:ntsysv
