]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add serve-stale test case for CNAME to A
authorMatthijs Mekking <matthijs@isc.org>
Fri, 27 Mar 2026 09:32:48 +0000 (10:32 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Sun, 17 May 2026 08:42:05 +0000 (08:42 +0000)
commit4ee526cb6d3c34ea2736154e15dbc19211e08321
tree7444cd8988da6ef080a812fde4f31113089afafc
parentc95128ed47e62951b464d36149f84aa32d1a4f68
Add serve-stale test case for CNAME to A

Add a serve-stale system test case where the authority changes a
CNAME RRset to A (at cname2.stale.test). The CNAME that is in the
cache is stale and should be refreshed. The target A record (at
a2.stale.test) has a longer TTL and is also still in the cache. The
next query should return the refreshed A RRset to the client.

Then the authority changes back the A RRset to CNAME. The A RRset
has become stale and should be refreshed. The next query should
return the refreshed CNAME RRset plus the already cached
a2.stale.test A record.

This test requires ns1 to allow dynamic updates to stale.test, and
prefetch to be disabled. The latter is to ensure the record is not
prefetched, but only refreshed when stale (and logs the expected
"an attempt to refresh the RRset" messages).
13 files changed:
bin/tests/system/serve_stale/ns1/named.conf.j2
bin/tests/system/serve_stale/ns1/named4.conf.in
bin/tests/system/serve_stale/ns3/named.conf.j2
bin/tests/system/serve_stale/ns3/named1.conf.j2
bin/tests/system/serve_stale/ns3/named2.conf.j2
bin/tests/system/serve_stale/ns3/named3.conf.j2
bin/tests/system/serve_stale/ns3/named4.conf.j2
bin/tests/system/serve_stale/ns3/named5.conf.j2
bin/tests/system/serve_stale/ns3/named6.conf.j2
bin/tests/system/serve_stale/ns3/named7.conf.j2
bin/tests/system/serve_stale/ns3/named9.conf.j2
bin/tests/system/serve_stale/tests.sh
bin/tests/system/serve_stale/tests_sh_serve_stale.py