]> git.ipfire.org Git - thirdparty/unbound.git/commit
Apply cache TTL policy to DNAME and synthesized CNAME on wire path (#1418)
authorArunabha Das <arunabhadas3@gmail.com>
Mon, 9 Mar 2026 12:53:52 +0000 (18:23 +0530)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2026 12:53:52 +0000 (13:53 +0100)
commit5c6f56f8f1c917c19deca17dea15b95b76c47556
treed923823800cf122b28c8dfd550f928328d9bddbb
parent9af29c3ed1085d7eeb943a2e476a5331682450a0
Apply cache TTL policy to DNAME and synthesized CNAME on wire path (#1418)

When the scrubber synthesizes a CNAME from a DNAME (authority omits CNAME),
apply cache-min-ttl/cache-max-ttl to both DNAME and synthesized CNAME in
msg_parse so they stay equal and respect config (RFC 6672).

- iterator/iter_scrub.c: In synth_cname_rrset(), clamp TTL to [MIN_TTL,
  MAX_TTL] when !SERVE_ORIGINAL_TTL and write back to both synth CNAME
  and DNAME rrset. Removes FIXME.
iterator/iter_scrub.c