<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 5, 2021 at 4:02 AM Dominik DL6ER <<a href="mailto:dl6er@dl6er.de">dl6er@dl6er.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Masanari,<br>
<br>
On Fri, 2021-09-03 at 19:26 +0900, Masanari Iida wrote:<br>
> dnsmasq-2.85 (Fedora 33, x86_64)<br>
> multiple upstream DNS servers in config file.<br>
> No --strict-order, No --all-server setting .<br>
> <br>
> Symptom<br>
> Explanation about --all-servers in dnsmasq(8) man page could <br>
> be different from actual dnsmasq behavior.<br>
> <br>
> In man page, it is written that <br>
> "By default, when dnsmasq has more than one upstream server <br>
> available, it will send queries to just one server"<br>
> <br>
> But actual behavior is, it sends queries to _ALL_ upstream DNS<br>
> servers in config at once.<br>
> And if I set --strict-order in dnsmasq.conf, then it send a query to<br>
> one <br>
> server at a time.<br>
<br>
This is expected behavior, the man page explains this somewhat hidden<br>
in the option --strict-order:<br>
<br>
> By default, dnsmasq will send queries to any of the upstream servers<br>
it knows about and tries to favour servers that are known to be up.<br>
<br>
This probing of the fastest happens every now and then, to be precise<br>
every 50 queries or every 20 seconds, see<br>
<a href="https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=src/config.h;h=30e23d8e8fb6a0b78d479f77ea021fe126e0670c;hb=HEAD#l27" rel="noreferrer" target="_blank">https://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=blob;f=src/config.h;h=30e23d8e8fb6a0b78d479f77ea021fe126e0670c;hb=HEAD#l27</a><br>
and the line below. The default probing could likely be made less<br>
often, but else than that, I don't think there is an inconsistency<br>
here.<br>
<br>
Best,<br>
Dominik<br>
<br></blockquote><div>Hello Dominik,</div><div>Thanks for the hint.<br></div><div>I have confirmed that what I was seeing is sending queries to upstream DNS servers every 20 seconds,</div><div>in case I did not specify strict-order and all-server. <br></div>Regards,</div><div class="gmail_quote">Masanari Iida<br></div></div>