This is for a server setup with a wobbly upstream DNS for company internal server names. Sometimes, when an entry has fallen from the cache due to TTL, and our system tries to resolve it, the upstream doesn’t answer; then our system sort of falls apart. The domains that are requested are fairly fixed.
Is there a DNS cache for Linux which still honors TTL (don’t need to ask again for X amount of time) but where it will attempt to refresh (with exp. back-off) the cache around the time the TTL has expires? And in the mean time probably returning the old answer, like a grace period.
Currently we are leaning to moving the caching into the application & database. Which seems a bit iffy to me.
It appears some commercial router appliances call this “FQDN Refresh”. But I can’t really find the config to do that in the few open source packages I looked at. It’s probably there, but slightly differently formulated.