]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't ignore auth zones when in serve-stale mode
authorMatthijs Mekking <matthijs@isc.org>
Mon, 30 Oct 2023 18:33:19 +0000 (19:33 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Tue, 31 Oct 2023 14:04:55 +0000 (15:04 +0100)
commit3aeac8e2a97ee831099f78e5363e503ecdd27917
tree18c4ec3262062d5a0e19511081652d268c4614a2
parentc02925763ec61e92fb363b8754099793c3494168
Don't ignore auth zones when in serve-stale mode

When serve-stale is enabled and recursive resolution fails, the fallback
to lookup stale data always happens in the cache database. Any
authoritative data is ignored, and only information learned through
recursive resolution is examined.

If there is data in the cache that could lead to an answer, and this can
be just the root delegation, the resolver will iterate further, getting
closer to the answer that can be found by recursing down the root, and
eventually puts the final response in the cache.

Change the fallback to serve-stale to use 'query_getdb()', that finds
out the best matching database for the given query.

(cherry picked from commit 2322425016298a39d2e48153285aefdfecc9a510)
lib/ns/query.c