bind9/lib/dns/include
Matthijs Mekking 91a1a8efc5 Consider non-stale data when in serve-stale mode
With 'stale-answer-enable yes;' and 'stale-answer-client-timeout off;',
consider the following situation:

A CNAME record and its target record are in the cache, then the CNAME
record expires, but the target record is still valid.

When a new query for the CNAME record arrives, and the query fails,
the stale record is used, and then the query "restarts" to follow
the CNAME target. The problem is that the query's multiple stale
options (like DNS_DBFIND_STALEOK) are not reset, so 'query_lookup()'
treats the restarted query as a lookup following a failed lookup,
and returns a SERVFAIL answer when there is no stale data found in the
cache, even if there is valid non-stale data there available.

With this change, query_lookup() now considers non-stale data in the
cache in the first place, and returns it if it is available.
2023-01-09 10:44:01 +01:00
..
dns Consider non-stale data when in serve-stale mode 2023-01-09 10:44:01 +01:00
dst Replace alg_totext with dst_hmac_algorithm_totext 2022-09-27 16:54:39 +02:00
.clang-format Add separate .clang-format files for headers 2020-02-14 09:31:05 +01:00