Is dnsmasq not loading because of a Network Manager conflict?
I'm on 12.10, and have always used dnsmasq
. A few days ago I noticed strange messages during boot:
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
Here is my /etc/dnsmasq.conf
: http://pastebin.com/AnKrrg6k
Here is my /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
If further information is needed, please ask!
Extracted from link https://help.ubuntu.com/community/Dnsmasq
Note that the package "dnsmasq" interferes with Network Manager which can use "dnsmasq-base" to provide DHCP services when sharing an internet connection. Therefore, if you use network manager (fine in simple set-ups only), then install dnsmasq-base, but not dnsmasq. If you have a more complicated set-up, uninstall network manager, use dnsmasq, or similar software (bind9, dhcpd, etc), and configure things by hand.