[LEDE-DEV] RFC netifd: UCI parameter to sort name servers in resolv.conf.auto

Toke Høiland-Jørgensen toke at toke.dk
Mon Sep 5 10:32:35 PDT 2016


Hans Dedecker <dedeckeh at gmail.com> writes:

> Hi Felix,
>
> Current implementation in netifd writes the dns servers into
> resolv.conf.auto file based on the order of the interfaces in the
> interface list which is alphabetical sorted. The resolver, in this
> case dnsmasq, reads the resolv.conf.auto file and queries the
> nameserver(s) in the order listed till it receives an answer.

Note that dnsmasq by default will query all known servers simultaneously
and use the first answer it gets. So sorting servers in resolv.conf.auto
only really works if dnsmasq is passed the 'strict-order' parameter,
which I don't think is the default...

-Toke



More information about the Lede-dev mailing list