Discussion:
Ordering of NameServers is not always respected
(too old to reply)
Sam Nazarko
2015-10-31 17:21:31 UTC
Permalink
Hi,


OSMC ships with DNS proxying disabled. We have noticed that some users report DNS priorities to not work as expected. It seems that nameservers are written in reverse order in /etc/resolv.conf. I checked resolver.c:


/*
* Domains and nameservers are added in reverse so that the most
* recently appended entry is the primary one. No more than
* MAXDNSRCH/MAXNS entries are used.
*/


I think this is non standard behaviour -- DNS servers should be written in the same order received from DHCP. If this is not the case, then DNS ordering should at least be identical regardless of whether DNS is being proxied or not.


Cheers,


Sam Nazarko

https://osmc.tv
Patrik Flykt
2015-11-02 07:46:23 UTC
Permalink
Post by Sam Nazarko
I think this is non standard behaviour -- DNS servers should be
written in the same order received from DHCP. If this is not the case,
then DNS ordering should at least be identical regardless of whether
DNS is being proxied or not.
Looks like a bug. ConnMan should have correct ordering internally and
then just write the entries in this order to resolv.conf.

Cheers,

Patrik

Loading...