[Dnsmasq-discuss] The order of nameservers provided by `server=`
Fox Haxx
foxhaxx at yandex.com
Mon Mar 25 15:35:04 GMT 2019
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?
More information about the Dnsmasq-discuss
mailing list