[Dnsmasq-discuss] dnsmasq does not seem to randomize resolvers
Sjors Gielen
sjors at sjorsgielen.nl
Wed Mar 6 18:14:06 GMT 2013
Op 06-03-13 19:02, Simon Kelley schreef:
>> Thanks for your response. In my tests the two main resolvers were
>> both equally fast (≈ 1 ms as they had the results cached), so even
>> though one may be a tiny bit quicker than the other, I doubt it would
>> be an explanation for it choosing a specific server 19 out of 20
>> times. Though it would be interesting to verify this; is there some
>> debug option that shows dnsmasq's train of thought?
>
> The decision is made by which resolver's packet arrives first, so microseconds count: I guess the ultimate arbiter is the first common switch in the path from the resolvers to the host running dnsmasq.
>
> Of course, one resolver will have an advantage because it gets the query sent to it first. The order that the query is sent to the resolvers isn't defined, but it's probably a consistent function of their order in the configuration file.
Ah, if you say it like that -- it makes sense that the same one would be chosen most of the time if they are this close. Thanks!
Sjors
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130306/740e3518/attachment.pgp>
More information about the Dnsmasq-discuss
mailing list