bind9/lib
Matthijs Mekking 8bcd7fe69e Use stale on error also when unable to recurse
The 'query_usestale()' function was only called when in
'query_gotanswer()' and an unexpected error occurred. This may have
been "quota reached", and thus we were in some cases returning
stale data on fetch-limits (and if serve-stale enabled of course).

But we can also hit fetch-limits when recursing because we are
following a referral (in 'query_notfound()' and
'query_delegation_recurse()'). Here we should also check for using
stale data in case an error occurred.

Specifically don't check for using stale data when refetching a
zero TTL RRset from cache.

Move the setting of DNS_DBFIND_STALESTART into the 'query_usestale()'
function to avoid code duplication.
2021-02-08 15:17:09 +01:00
..
bind9 Use -release instead of -version-info for internal library SONAMEs 2021-01-25 14:19:53 +01:00
dns Attempt to silence untrusted loop bound 2021-02-08 02:02:29 +00:00
irs Use -release instead of -version-info for internal library SONAMEs 2021-01-25 14:19:53 +01:00
isc Unit-test fixes and manual page updates for DoH configuration 2021-02-03 12:06:17 +01:00
isccc Use -release instead of -version-info for internal library SONAMEs 2021-01-25 14:19:53 +01:00
isccfg tls and http configuration code was unnecessarily complex 2021-02-03 12:06:17 +01:00
ns Use stale on error also when unable to recurse 2021-02-08 15:17:09 +01:00
samples Add libssl libraries to Windows build 2020-11-09 16:00:28 +01:00
win32/bindevt update all copyright headers to eliminate the typo 2020-09-14 16:20:40 -07:00
.gitignore Provide unit test driver 2020-05-21 12:13:01 +02:00
Makefile.am Complete rewrite the BIND 9 build system 2020-04-21 14:19:48 +02:00
unit-test-driver.sh.in Provide unit test driver 2020-05-21 12:13:01 +02:00