![dnsmasq 是否因为网络管理器冲突而无法加载?](https://linux22.com/image/966259/dnsmasq%20%E6%98%AF%E5%90%A6%E5%9B%A0%E4%B8%BA%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86%E5%99%A8%E5%86%B2%E7%AA%81%E8%80%8C%E6%97%A0%E6%B3%95%E5%8A%A0%E8%BD%BD%EF%BC%9F.png)
我使用的是 12.10,并且一直在使用dnsmasq
。几天前,我在启动过程中注意到了奇怪的消息:
NetworkManager[1316]: <warn> DNS: plugin dnsmasq update failed
dnsmasq[1302]: failed to create listening socket for 127.0.0.1: Address already in use
dnsmasq[1302]: FAILED to start up
NetworkManager[1316]: <info> DNS: starting dnsmasq...
NetworkManager[1316]: <error> [1362028900.869958] [nm-dns-dnsmasq.c:390] update(): dnsmasq not available on the bus, can't update servers.
NetworkManager[1316]: <error> [1362028900.869979] [nm-dns-dnsmasq.c:392] update(): dnsmasq owner not found on bus: Could not get owner of name 'org.freedesktop.NetworkManager.dnsmasq': no such name
NetworkManager[1316]: <warn> DNS: plugin dnsmasq update failed
dnsmasq[1876]: warning: no upstream servers configured
这是我的/etc/dnsmasq.conf
:http://pastebin.com/AnKrrg6k
这是我的/etc/dnsmasq.d/network-manager
:
# Tell any system-wide dnsmasq instance to make sure to bind to interfaces
# instead of listening on 0.0.0.0
# WARNING: changes to this file will get lost if network-manager is removed.
bind-interfaces
如果需要更多信息,请询问!
答案1
摘自链接https://help.ubuntu.com/community/Dnsmasq
请注意,软件包“dnsmasq”会干扰网络管理器,后者可以在共享互联网连接时使用“dnsmasq-base”提供 DHCP 服务。因此,如果您使用网络管理器(仅适用于简单设置),则安装 dnsmasq-base,而不是 dnsmasq。如果您的设置更复杂,请卸载网络管理器,使用 dnsmasq 或类似软件(bind9、dhcpd 等),然后手动配置。