From: Peter van Dijk Date: Fri, 21 May 2021 13:45:54 +0000 (+0200) Subject: rec: distinguish the various 'Removing irrelevant record' log lines X-Git-Tag: auth-4.5.0-beta1~26^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10433%2Fhead;p=thirdparty%2Fpdns.git rec: distinguish the various 'Removing irrelevant record' log lines --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 2cb4d08ea2..a4b84b6e92 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2914,7 +2914,7 @@ void SyncRes::sanitizeRecords(const std::string& prefix, LWResult& lwr, const DN } if (rec->d_place == DNSResourceRecord::ANSWER && (qtype != QType::ANY && rec->d_type != qtype.getCode() && s_redirectionQTypes.count(rec->d_type) == 0 && rec->d_type != QType::SOA && rec->d_type != QType::RRSIG)) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the ANSWER section received from "<d_place == DNSResourceRecord::AUTHORITY && rec->d_type != QType::NS && rec->d_type != QType::DS && rec->d_type != QType::SOA && rec->d_type != QType::RRSIG && rec->d_type != QType::NSEC && rec->d_type != QType::NSEC3) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the AUTHORITY section received from "<d_place == DNSResourceRecord::AUTHORITY && rec->d_type == QType::SOA) { if (!qname.isPartOf(rec->d_name)) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_content->getZoneRepresentation()<<"' in the AUTHORITY section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the AUTHORITY section received from "<d_place == DNSResourceRecord::ADDITIONAL && rec->d_type != QType::A && rec->d_type != QType::AAAA && rec->d_type != QType::RRSIG) { - LOG(prefix<<"Removing irrelevant record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the ADDITIONAL section received from "<d_place == DNSResourceRecord::ADDITIONAL && allowedAdditionals.count(rec->d_name) == 0) { - LOG(prefix<<"Removing irrelevant additional record '"<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the "<<(int)rec->d_place<<" section received from "<d_name<<"|"<d_type)<<"|"<d_content->getZoneRepresentation()<<"' in the ADDITIONAL section received from "<