getdnsapi / stubby

Stubby is the name given to a mode of using getdns which enables it to act as a local DNS Privacy stub resolver (using DNS-over-TLS).
https://dnsprivacy.org/dns_privacy_daemon_-_stubby/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

Resolving issues when a round robin server is unavailable #246

Open bjo81 opened 4 years ago

bjo81 commented 4 years ago

I'm running stubby on some OpenWRT boxes with round_robin=1 and 2 VMs with knot-resolver as DoT-Resolver. One of both VMs was unaivable last night and one of the clients of the OpenWRT boxes got DNS resolving issues. I'm wondering about this, does stubby simply answer NXDOMAIN when the chosen round robin server is unavailable, and does not ask another one (like it would when round_robin=0)?

wtoorop commented 4 years ago

No, a non-responsive resolver will not result in a NXDOMAIN. NXDOMAIN is a real DNS answer telling that the name did not exist. I think it should have skipped one of the VMs, but retry periodically.