<div dir="ltr">I just run the host command on a questionable resolution target with a defined dns and compare it with with the default (which should be 127.0.0.1 in my case: as I do have a bunch of undesirables in my hosts file resolving to the loopback per: <a href="http://someonewhocares.org/hosts/">http://someonewhocares.org/hosts/</a>). <div><br></div><div><div>drf@raspberrypi:~ $ host <a href="http://cyberscat.com">cyberscat.com</a></div><div><a href="http://cyberscat.com">cyberscat.com</a> has address 127.0.0.1</div><div><a href="http://cyberscat.com">cyberscat.com</a> has IPv6 address ::1</div><div>drf@raspberrypi:~ $ host <a href="http://cyberscat.com">cyberscat.com</a> 8.8.8.8</div><div>Using domain server:</div><div>Name: 8.8.8.8</div><div>Address: 8.8.8.8#53</div><div>Aliases: </div><div><br></div><div><a href="http://cyberscat.com">cyberscat.com</a> has address 69.162.80.55</div><div>drf@raspberrypi:~ $ </div><div><br></div><div>Amicalement,<br></div></div><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Dave F<span style="font-size:12.8px">.</span></div><div><br></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Sat, Jan 14, 2017 at 4:43 PM, Jim Alles <span dir="ltr"><<a href="mailto:kb3tbx@gmail.com" target="_blank">kb3tbx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:georgia,serif">Lars,</div><div class="gmail_extra"><span class="gmail-"><br><div class="gmail_quote">On Sat, Jan 14, 2017 at 7:40 AM, Lars Noodén <span dir="ltr"><<a href="mailto:lars.nooden@gmail.com" target="_blank">lars.nooden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How can I get an already running instance of Dnsmasq to tell which DNS<br>
servers it is using to resolve new queries upstream?<br><br>
</blockquote></div></span><div style="font-family:georgia,serif">​I am not sure that is the most reliable way to get the information you are looking for.​ Any client App can try to use whatever DNS server it wants to resolve names. That isn't polite, but it happens a lot with smartphones, and IoT in general.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">As far as the desktop OS, a user can override the DNS entries that DHCP provides.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I lock my network clients into OpenDNS by using dnsmasq on my router (Untangle's NGFW) pointed to their servers, and the firewall to block any other attempts besides dnsmasq. The firewall then provides a handy log of attempts to bypass my wishes.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Another way to see what is going on, is to run wireshark and filter for UDP port 53.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">dnsmasq can't know about things going around it.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Peace,</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Jim A.</div><br></div></div>
<br>______________________________<wbr>_________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.<wbr>thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.<wbr>uk/mailman/listinfo/dnsmasq-<wbr>discuss</a><br>
<br></blockquote></div><br></div></div>