]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use stale data also if we are not resuming
authorMatthijs Mekking <matthijs@isc.org>
Tue, 19 Jan 2021 08:04:29 +0000 (09:04 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 28 Jan 2021 15:36:46 +0000 (16:36 +0100)
commitc6fd02aed534e21989fafd7b45b132a21c24fdbc
tree6a64b79e0695a57d775350946bc15483760dc0e7
parentc1c7e1ac5c34b7e5dca89d9ced44aad69e63141c
Use stale data also if we are not resuming

Before this change, BIND will only fallback to using stale data if
there was an actual attempt to resolve the query. Then on a timeout,
the stale data from cache becomes eligible.

This commit changes this so that on any unexpected error stale data
becomes eligble (you would still have to have 'stale-answer-enable'
enabled of course).

If there is no stale data, this may return in an error again, so don't
loop on stale data lookup attempts. If the DNS_DBFIND_STALEOK flag is
set, this means we already tried to lookup stale data, so if that is
the case, don't use stale again.
lib/ns/query.c