Re: [Dnsmasq-discuss] [solved] Re: Finding actual DNS server used
On Mon, Jan 16, 2017 at 02:10:05PM +0100, Beniamino Galvani wrote: > > In the next version of NetworkManager (1.6) it will be possible to > show the DNS configuration in the output of 'nmcli' [1], as: > Ah, now that seems to be a sensible approach. :-) -- Chris Green ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] [solved] Re: Finding actual DNS server used
On Mon, Jan 16, 2017 at 08:36:05AM +0200, Lars Noodén wrote: > Thanks. That's it. I somehow missed it there in the manual page: > > When it receives a SIGUSR1, dnsmasq writes statistics > to the system log. … For each upstream server > it gives the number of queries sent, and the > number which resulted in an error. > … > > That gives me the information I was looking for regarding verifying > which server dnsmasq is using. Hi, in addition to the suggested methods, an alternative way is to grep system logs for: dnsmasq[6620]: setting upstream servers from DBus dnsmasq[6620]: using nameserver 192.168.10.1#53(via ens3) In the next version of NetworkManager (1.6) it will be possible to show the DNS configuration in the output of 'nmcli' [1], as: $ nmcli ens3: connected to internet+ "Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter (QEMU Virtual Machine)" ethernet (8139cp), 52:54:00:F1:61:81, hw, mtu 1500 ip4 default inet4 192.168.10.166/24 [...] DNS configuration: servers: 10.0.0.1 domains: foobar.com interface: tun0 type: vpn servers: 192.168.10.1 interface: ens3 Beniamino [1] https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=20bf5ce35907e2a59fd1f1f9595b8eb202facc0f ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] [solved] Re: Finding actual DNS server used
On 01/16/2017 12:23 AM, Weedy wrote: > On 15 January 2017 at 17:15, Albert ARIBAUD> wrote: >> Hi Weedy, >> >> Le Sun, 15 Jan 2017 17:04:37 -0500 Weedy a >> écrit: > [snip] >>> >>> http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html#lbAG >>> >>> An API of sorts was added some time last year >> >> I've gone through the NOTES section you are referring to, but I >> don't see exactly which API you are referring to. Could you provide >> more precise indications? > > I was talking about "statistics are also available in the DNS as > answers to queries of class CHAOS and type TXT in domain bind". > Which is why I said API of sorts. [snip] Thanks. That's it. I somehow missed it there in the manual page: When it receives a SIGUSR1, dnsmasq writes statistics to the system log. … For each upstream server it gives the number of queries sent, and the number which resulted in an error. … That gives me the information I was looking for regarding verifying which server dnsmasq is using. Regards, Lars ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss