昨天我升级到 Precise 并且 dnsmasq 停止工作。也就是说,对 dnsmasq 正在侦听的 localhost (127.0.0.1) 的 DNS 查询被拒绝。
删除 resolvconf ( apt-get remove resolvconf) 并重新启动解决了该问题(在 Google 某处找到了该建议)。/etc/resolv.conf有和没有 resolvconf 看起来都很好。完全没有区别。
apt-get remove resolvconf
/etc/resolv.conf
resolv.conf dnsmasq
dnsmasq ×1
resolv.conf ×1