Lars Noodén
2017-01-14 12:40:14 UTC
How can I get an already running instance of Dnsmasq to tell which DNS
servers it is using to resolve new queries upstream?
Specifically how can this be done in distros like Ubuntu and Linux Mint,
which have setups like this::
# 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.1.1
# ps auxw |grep dnsmasq
nobody 2711 0.0 0.0 31028 3276 ? S 13:27 0:00
/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts
--bind-interfaces
--pid-file=/run/sendsigs.omit.d/network-manager.dnsmasq.pid
--listen-address=127.0.1.1
--conf-file=/var/run/NetworkManager/dnsmasq.conf --cache-size=0
--proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq
--conf-dir=/etc/NetworkManager/dnsmasq.d
I've not spotted anything in the manual page that stands out for that
purpose.
Regards,
Lars
servers it is using to resolve new queries upstream?
Specifically how can this be done in distros like Ubuntu and Linux Mint,
which have setups like this::
# 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.1.1
# ps auxw |grep dnsmasq
nobody 2711 0.0 0.0 31028 3276 ? S 13:27 0:00
/usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts
--bind-interfaces
--pid-file=/run/sendsigs.omit.d/network-manager.dnsmasq.pid
--listen-address=127.0.1.1
--conf-file=/var/run/NetworkManager/dnsmasq.conf --cache-size=0
--proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq
--conf-dir=/etc/NetworkManager/dnsmasq.d
I've not spotted anything in the manual page that stands out for that
purpose.
Regards,
Lars