bind9/lib
Matthijs Mekking b90bad93cb Fix serve-stale bug when cache has no data
We recently fixed a bug where in some cases (when following an
expired CNAME for example), named could return SERVFAIL if the target
record is still valid (see isc-projects/bind9#3678, and
isc-projects/bind9!7096). We fixed this by considering non-stale
RRsets as well during the stale lookup.

However, this triggered a new bug because despite the answer from
cache not being stale, the lookup may be triggered by serve-stale.
If the answer from database is not stale, the fix in
isc-projects/bind9!7096 erroneously skips the serve-stale logic.

Add 'answer_found' checks to the serve-stale logic to fix this issue.

(cherry picked from commit bbd163acf6)
2023-05-30 13:46:00 +02:00
..
bind9 deprecate delegation-only and root-delegation only 2023-03-23 14:09:53 -07:00
dns ZMGR: TLS contexts cache - properly synchronise access 2023-05-26 15:24:51 +03:00
irs Properly process extra nameserver lines in resolv.conf 2023-05-16 13:29:33 +10:00
isc Move isc_mem_put to after node is checked for equality 2023-05-29 13:27:51 +10:00
isccc Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
isccfg mark 'tkey-dhkey' as deprecated 2023-05-28 00:55:34 -07:00
ns Fix serve-stale bug when cache has no data 2023-05-30 13:46:00 +02:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00