Discussion:
[Dnsmasq-discuss] Listing the current DNS servers and domain prefixes?
Steve Ash
2015-10-10 21:59:40 UTC
Permalink
I use linux mint on my laptop with resolvconf and dnsmasq for doing dns
resolution. When I connect to my vpn the NetworkManager updates dnsmasq via
dbus with the vpn dns servers.

I can use nmcli dev list to see the wifi dhcp DNS ips and i can send
SIGUSR1 to get some output from dnsmasq about upstream servers.

When I read about ubuntu/mints use of dnsmasq with VPNs I read that they
send the dns search suffix so that dnsmasq only uses the vpn's DNS for
requests to things in that domain.

Does the SIGUSR1 output _all_ of the DNS servers that dnsmasq knows about?
When I run it after connecting to my VPN I only see my VPN DNS servers. I
know this isn't a dnsmasq problem but in trying to diagnose the problem I
find myself wanting to query dnsmasq for all of its upstream DNS servers.
Since it goes over dbus I dont get a good picture from resolvconf config.

If SIGUSR1 doesn't curently output this then I would like to file a
suggestion that it include all upstream servers and what dns suffixes they
are configured for as that would help this situation I think.

Thanks so much!
Steve
Simon Kelley
2015-10-14 20:45:02 UTC
Permalink
Whenever the set of ipstream servers changes, (because
/etc/resolv.conf got re-read, or a DBus method go invoked,or whatever,
then dnsmasq logs the complete list of all the upstream servers, and
the dns suffixes they handle.


Cheers,

Simon.
Post by Steve Ash
I use linux mint on my laptop with resolvconf and dnsmasq for doing
dns resolution. When I connect to my vpn the NetworkManager updates
dnsmasq via dbus with the vpn dns servers.
I can use nmcli dev list to see the wifi dhcp DNS ips and i can
send SIGUSR1 to get some output from dnsmasq about upstream
servers.
When I read about ubuntu/mints use of dnsmasq with VPNs I read that
they send the dns search suffix so that dnsmasq only uses the vpn's
DNS for requests to things in that domain.
Does the SIGUSR1 output _all_ of the DNS servers that dnsmasq knows
about? When I run it after connecting to my VPN I only see my VPN
DNS servers. I know this isn't a dnsmasq problem but in trying to
diagnose the problem I find myself wanting to query dnsmasq for all
of its upstream DNS servers. Since it goes over dbus I dont get a
good picture from resolvconf config.
If SIGUSR1 doesn't curently output this then I would like to file
a suggestion that it include all upstream servers and what dns
suffixes they are configured for as that would help this situation
I think.
Thanks so much! Steve
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...