]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Perform the CNAME unicity tests during updates regardless of the TTL. 17155/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 17 Apr 2026 12:36:37 +0000 (14:36 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 17 Apr 2026 12:36:37 +0000 (14:36 +0200)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
pdns/rfc2136handler.cc

index 79ccd6c97a540d35e07acf553b9810a934702d02..a001bcb669b3100e7c6d400efcf50f85fdc13fc8 100644 (file)
@@ -947,7 +947,7 @@ static uint8_t updateRecords(const MOADNSParser::answers_t& answers, DNSSECKeepe
       if (rec.d_class == QClass::NONE && rec.d_type == QType::NS && rec.d_name == ctx.di.zone.operator const DNSName&()) {
         nsRRtoDelete.push_back(&rec);
       }
-      else if (rec.d_class == QClass::IN && rec.d_ttl > 0) {
+      else if (rec.d_class == QClass::IN) {
         if (rec.d_type == QType::CNAME) {
           cnamesToAdd.push_back(&rec);
         }