<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Dear Kevin,<br>
<blockquote type="cite">
<pre wrap="">Obviously it has to at least try the others occasionally to check it’s made the correct choice. But I’m seeing dnsmasq make the same request to <b class="moz-txt-star"><span class="moz-txt-tag">*</span>ALL<span class="moz-txt-tag">*</span></b> servers quite frequently and am curious as to why?</pre>
</blockquote>
</p>
<p>dnsmasq is trying all servers quite frequently, either every 50
queries or 10 seconds (whatever happens first) if I'm not
mistaken. This fits well to your observation.</p>
<p>I changed this locally to checking every 1000 queries (or every
10 minutes) and this is working great (I compile dnsmasq from
source).</p>
<p>Best,<br>
Dominik<br>
</p>
<br>
<div class="moz-cite-prefix">On 15.05.2018 17:27, Kevin
Darbyshire-Bryant wrote:<br>
</div>
<blockquote type="cite"
cite="mid:84D66737-3189-4AE6-9DBD-F01ADC4657E4@darbyshire-bryant.me.uk">
<pre wrap="">This is one of my classic ‘look in a logfile…. hmmmm’ moments.
dnsmasq is configured with 4 upstream resolvers, google, both IPv4 & 6. Manpage states:
-o, --strict-order
By default, dnsmasq will send queries to any of the upstream servers it knows about and tries to favour servers that are known to be up. Setting this flag forces dnsmasq to try each query with each server strictly in the order they appear in /etc/resolv.conf
--all-servers
By default, when dnsmasq has more than one upstream server available, it will send queries to just one server. Setting this flag forces dnsmasq to send all queries to all available servers. The reply from the server which answers first will be returned to the original requester.
I have neither of these flags set, so I’d expect dnsmasq to choose one of the servers, hopefully the fastest and stick with that. Obviously it has to at least try the others occasionally to check it’s made the correct choice. But I’m seeing dnsmasq make the same request to *ALL* servers quite frequently and am curious as to why?
Cheers,
Kevin D-B
012C ACB2 28C6 C53E 9775 9123 B3A2 389B 9DE2 334A
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>