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

Reduce log spam when upstream interface is offline #323

Open rbubley opened 2 years ago

rbubley commented 2 years ago

This was the suggested fix to a problem observed in the OpenWrt implementation of stubby (usually embedded in a router), where if the upstream interface went offline, the logs would rapidly be filled with "Could not schedule query". This fix was suggested by Andre Heider via @dhewg (See openwrt/packages#13726)

dhewg commented 2 years ago

Yeah, and I'm still using this patch.

But in this state it's probably not suitable for upstream. A nicer solution might be to only skip that line if the prior error was the same.

GektorUA commented 1 year ago

Stubby 0.4.3 + mwan3, now on OpenWrt is no messages at all about "Could not schedule query..." when there is all links offline. And when one of links goes online, stubby hangs, needs to do manual restart of stubby to make DNS works.