dnsmasq 是否因为网络管理器冲突而无法加载?

dnsmasq 是否因为网络管理器冲突而无法加载?

我使用的是 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.confhttp://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 等),然后手动配置。

相关内容