[Dnsmasq-discuss] [solved] Re: Finding actual DNS server used
Beniamino Galvani
bgalvani at redhat.com
Mon Jan 16 13:10:05 GMT 2017
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
More information about the Dnsmasq-discuss
mailing list