On Wed, Mar 29, 2017 at 09:43:33AM -0500, Joel Whitehouse wrote:
> I'm running ubuntu 14, which uses dnsmasq as a local resolver on
> When I issue a dig query, dig informs me it's using as its
> resolver:
> ;; Query time: 3 msec
> ;; SERVER:
> ;; WHEN: Wed Mar 29 09:36:06 CDT 2017
> ;; MSG SIZE  rcvd: 63
> However, I would like to know what host dnsmasq is using as its resolver.
> On my system, `ps ax' shows that dnsmasq is started with the command:
> /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts
> --bind-interfaces
> --pid-file=/run/sendsigs.omit.d/network-manager.dnsmasq.pid
> --listen-address= --conf-file=/var/run/NetworkManager/dnsmasq.conf
> --cache-size=0 --proxy-dnssec
> --enable-dbus=org.freedesktop.NetworkManager.dnsmasq
> –conf-dir=/etc/NetworkManager/dnsmasq.d
> Both the file /var/run/NetworkManager/dnsmasq.conf and the directory
> /etc/NetworkManager/dnsmasq.d/ are empty, so it's likely that dnsmasq is
> receiving its resovlers from Network Manager over the dbus interface.

Correct. You should find in system logs the list of name servers pushed
by NM to dnsmasq through D-Bus:

 dnsmasq[6620]: setting upstream servers from DBus
 dnsmasq[6620]: using nameserver ens3)

With NM > 1.6 name servers in use are also printed in the 'nmcli'

> Is there any way to get dnsmasq to log when it issues a new query to a
> resolver?


 echo log-queries > /etc/NetworkManager/dnsmasq.d/log-queries

and restart NetworkManager.


Attachment: signature.asc
Description: PGP signature

Dnsmasq-discuss mailing list

Reply via email to