[Dnsmasq-discuss] The order of nameservers provided by `server=`

John Robson jrobson at zenoss.com
Mon Mar 25 16:14:51 GMT 2019


Don’t think dnsmasq cares what order they are in, it tests them all and
chooses the fastest to use.

On Mon, 25 Mar 2019 at 16:00, Fox Haxx <foxhaxx at yandex.com> wrote:

> Let' say I have this config:
>
>     server=<ns1>
>     server=<ns2>
>     resolv-file=/etc/dnsmasq-resolv.conf
>     strict-order
>
> By running dnsmasq with `--log-queries` I discovered that <ns2> is actually
> listed above <ns1>:
>
>     dnsmasq: using nameserver <ns2>
>     dnsmasq: using nameserver <ns1>
>     dnsmasq: using nameserver 192.168.1.1#53
>     dnsmasq: read /etc/hosts - 2 addresses
>     dnsmasq: query[A] x.org from 127.0.0.1
>     dnsmasq: forwarded x.org to <ns2>
>     dnsmasq: reply x.org is 131.252.210.176
>
> Which is to say, every `server=` server is _prepended_ to servers list,
> rather
> than _appended_.
>
> I think this is counter-intuitive.
>
> So is this intended?
> Is it documented?
> Should it be changed?
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190325/a67457fd/attachment.html>


More information about the Dnsmasq-discuss mailing list