]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Clarify log message for NODATA/NXDOMAIN without AA 12805/head
authorHåkan Lindqvist <h@qw.se>
Thu, 11 May 2023 14:25:35 +0000 (14:25 +0000)
committerHåkan Lindqvist <h@qw.se>
Thu, 11 May 2023 15:07:00 +0000 (15:07 +0000)
The old log message did not indicate the specific reason why the
record was considered irrelevant, logging only information about
a SOA record that quite likely is both normal and relevant.

This somewhat helps explaining what the actual problem is.

pdns/recursordist/syncres.cc

index f7270474f1062bfc652320f4d706675904463d8d..3195b4095be82ccb25b0d5894278bf5060ccd1c9 100644 (file)
@@ -4163,7 +4163,7 @@ void SyncRes::sanitizeRecords(const std::string& prefix, LWResult& lwr, const DN
       }
 
       if (!(lwr.d_aabit || wasForwardRecurse)) {
-        LOG(prefix << qname << ": Removing irrelevant record '" << rec->d_name << "|" << DNSRecordContent::NumberToType(rec->d_type) << "|" << rec->getContent()->getZoneRepresentation() << "' in the AUTHORITY section received from " << auth << endl);
+        LOG(prefix << qname << ": Removing irrelevant record (AA not set) '" << rec->d_name << "|" << DNSRecordContent::NumberToType(rec->d_type) << "|" << rec->getContent()->getZoneRepresentation() << "' in the AUTHORITY section received from " << auth << endl);
         rec = lwr.d_records.erase(rec);
         continue;
       }