bind9/lib/ns
Ondřej Surý 4afd5b0462
Only refresh negative cache entries that are actually stale
query_ncache() always passed a NULL rdataset to query_stale_refresh(),
which reads NULL as "this RRset is stale".  NULL is only meaningful for
the DNS64 caller, whose rdataset has already been detached by the time
the answer is turned into an NXDOMAIN; everywhere else a perfectly fresh
negative cache entry was taken for a stale one.

With stale-answer-client-timeout 0 the staleness check is the only gate
left on the refresh, so every client query for a cached NXDOMAIN or
NODATA name started another fetch and negative caching stopped having
any effect.

(cherry picked from commit 4821290c31)
2026-07-10 12:07:08 +02:00
..
include Preserve the request buffer across async SIG(0) processing 2026-06-08 13:13:27 +00:00
.gitignore Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
client.c Use original query name when caching SERVFAIL 2026-06-18 14:06:14 +02:00
hooks.c standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
interfacemgr.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
listenlist.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
log.c Log the rcode returned to for a query 2024-09-30 00:10:47 +00:00
Makefile.am Add support for User Statically Defined Tracing (USDT) probes 2023-08-21 18:39:53 +02:00
notify.c convert TSIG keyring storage from RBT to hash table 2023-06-14 08:14:38 +00:00
probes.d Add a probe when the response rate limiting drops or slips query 2023-08-21 18:39:53 +02:00
query.c Only refresh negative cache entries that are actually stale 2026-07-10 12:07:08 +02:00
server.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
sortlist.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
stats.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
update.c Add DNS_PRIVATE_BUFFERSIZE and use it 2026-07-03 04:07:30 +10:00
xfrout.c Apply XFR-out quota after ACL is checked 2026-05-07 13:09:18 +02:00