[Dnsmasq-discuss] Debugging dnsmasq on Ubuntu

Joel Whitehouse code at joelwhitehouse.com
Wed Mar 29 15:43:33 BST 2017

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
;; 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 

/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts 
--conf-file=/var/run/NetworkManager/dnsmasq.conf --cache-size=0 
--proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq 

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.

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


More information about the Dnsmasq-discuss mailing list