Note: the dnsmasq.d file included in the new n-m release includes both "bind-interfaces" and "except-interface=lo".
This is already a big improvement. It allows standalone dnsmasq to run on a system with NM and nm-dnsmasq: standalone dnsmasq listens on interfaces other than lo and forwards queries to nm-dnsmasq at 127.0.0.1.
$ dpkg -l dnsmasq network-manager|grep ^ii
ii dnsmasq 2.62-3 Small caching DNS proxy and DHCP/TFTP server
ii network-manager 0.9.6.0~git201207161259.00297f4-0ubuntu1 network management framework (daemon and userspace tools)
$ cat /etc/dnsmasq.d/network-manager
# Tell any system-wide dnsmasq instance to not bind to the loopback interface.
# WARNING: changes to this file will get lost if network-manager is removed.
bind-interfaces
except-interface=lo
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search [redacted]
Note: the dnsmasq.d file included in the new n-m release includes both "bind-interfaces" and "except- interface= lo".
This is already a big improvement. It allows standalone dnsmasq to run on a system with NM and nm-dnsmasq: standalone dnsmasq listens on interfaces other than lo and forwards queries to nm-dnsmasq at 127.0.0.1.
$ dpkg -l dnsmasq network- manager| grep ^ii git201207161259 .00297f4- 0ubuntu1 network management framework (daemon and userspace tools)
ii dnsmasq 2.62-3 Small caching DNS proxy and DHCP/TFTP server
ii network-manager 0.9.6.0~
$ cat /etc/dnsmasq. d/network- manager
# Tell any system-wide dnsmasq instance to not bind to the loopback interface.
# WARNING: changes to this file will get lost if network-manager is removed.
bind-interfaces
except-interface=lo
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search [redacted]
$ cat /var/run/ dnsmasq/ resolv. conf
nameserver 127.0.0.1
$ cat /var/run/ nm-dns- dnsmasq. conf 192.168. 1.254 195.241. 76.55 195.241. 76.58
server=
server=
server=
$ sudo netstat -nl4p |grep :53
tcp 0 0 192.168.1.20:53 0.0.0.0:* LISTEN 7039/dnsmasq
tcp 0 0 192.168.1.21:53 0.0.0.0:* LISTEN 7039/dnsmasq
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 6282/dnsmasq
udp 0 0 192.168.1.20:53 0.0.0.0:* 7039/dnsmasq
udp 0 0 192.168.1.21:53 0.0.0.0:* 7039/dnsmasq
udp 0 0 127.0.0.1:53 0.0.0.0:* 6282/dnsmasq
udp 0 0 0.0.0.0:5353 0.0.0.0:* 1103/avahi-daemon: