bind9/bin
Ondřej Surý 4fa5b6a95a
Test that a fresh negative cache entry is not refreshed
The existing serve-stale tests all use negative answers with a two
second TTL, because they are there to exercise stale data.  Nothing
covered the far more common case of a negative answer that is still
fresh, which is how the needless refresh went unnoticed.

ans2 grows a NODATA and an NXDOMAIN name backed by a SOA with a 600
second TTL and MINIMUM, so the cached entry cannot go stale while the
test runs, and the test counts the queries that reach ans2: priming the
cache may send one, the repeated client queries must send none.

Assisted-by: Claude:claude-opus-4-8
(cherry picked from commit 60b3cc0eca)
2026-07-10 12:07:08 +02:00
..
check Resolve ERR_MISSING_GLUE / ERR_EXTRA_AAAA value collision 2026-04-29 15:31:58 +00:00
confgen Size HMAC key generation buffers to the maximum block size 2026-04-30 06:00:07 +02:00
delv Skip detach when delv's client never created 2026-04-30 12:07:49 +02:00
dig Replace the shared work pool with per-loop, per-lane worker threads 2026-06-17 21:15:17 +02:00
dnssec Check wildcard signer and NOQNAME signer match 2026-06-18 10:58:11 -07:00
named Add the tcp-reuse-timeout option 2026-06-25 11:37:51 +02:00
nsupdate Fix a false positive compiler warning/error on Alpine 3.24 2026-06-24 18:06:47 +02:00
plugins standardize CHECK and RETERR macros 2025-12-03 19:17:20 -08:00
rndc List 'rndc dnssec' arguments in alphabetic order 2026-02-18 14:20:53 +00:00
tests Test that a fresh negative cache entry is not refreshed 2026-07-10 12:07:08 +02:00
tools Validate nsec3hash arguments instead of relying on atoi() 2026-05-21 11:41:29 +00:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00