Preserve ZEROTTL attribute when replacing NS RRset

Previously, BIND 9 would drop the ZEROTTL attribute when updating
previously cached NS entry with ZEROTTL attribute set.

Co-authored-by: Jinmei Tatuya <jtatuya@infoblox.com>
This commit is contained in:
Ondřej Surý 2025-08-26 17:52:45 +02:00
parent bfbc58063a
commit 982ca161c2
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -2790,6 +2790,11 @@ find_header:
header->trust <= newheader->trust)
{
if (newheader->expire > header->expire) {
if (ZEROTTL(header)) {
DNS_SLABHEADER_SETATTR(
newheader,
DNS_SLABHEADERATTR_ZEROTTL);
}
newheader->expire = header->expire;
}
}