From: Remi Gacogne Date: Fri, 9 Jun 2017 17:45:16 +0000 (+0200) Subject: rec: Fix validation issue when getting the NS returns a Bogus result X-Git-Tag: rec-4.1.0-alpha1~50^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcb05770e20bcf41e8389c6b916c6922baa34d60;p=thirdparty%2Fpdns.git rec: Fix validation issue when getting the NS returns a Bogus result --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 84e9887247..5b03fcd1ca 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -568,7 +568,7 @@ int SyncRes::doResolve(const DNSName &qname, const QType &qtype, vectord_content->getZoneRepresentation()<<"', validation state is "<(j->d_content)->getTarget(), qtype, ret, depth+1, beenthere, cnameState); - LOG("Updating validation state for response to "<negAnchors, zone, reason)) { - LOG("Got NTA for "<dsAnchors, zone, ds)) { - LOG("Got TA for "<second]<<" for name "<second]<<" for name "<second; } } @@ -1391,7 +1391,7 @@ vState SyncRes::getValidationStatus(const DNSName& subdomain) void SyncRes::computeZoneCuts(const DNSName& begin, const DNSName& end, unsigned int depth) { if(!begin.isPartOf(end)) { - LOG(end.toLogString()<<" is not part of "<second != Indeterminate) { + LOG(d_prefix<<": - Cut already known at "< beenthere; std::vector nsrecords; @@ -1447,13 +1456,18 @@ void SyncRes::computeZoneCuts(const DNSName& begin, const DNSName& end, unsigned break; } if (foundCut) { - LOG("- Found cut at "< records; std::set beenthere; - LOG("Retrieving DNSKeys for "<first.name<first.name<first.type == QType::DNSKEY && i->first.place == DNSResourceRecord::ANSWER) { - LOG("Validating DNSKEY for "<first.name<first.name<first.name, i->second.records, i->second.signatures, depth); } else { - LOG("Validating non-additional record for "<first.name<first.name<first.name, i->second.records, i->second.signatures); } } @@ -1756,7 +1779,7 @@ RCode::rcodes_ SyncRes::updateCacheFromRecords(unsigned int depth, LWResult& lwr else { /* for non authoritative answer, we only care about the DS record (or lack of) */ if ((i->first.type == QType::DS || i->first.type == QType::NSEC || i->first.type == QType::NSEC3) && i->first.place == DNSResourceRecord::AUTHORITY) { - LOG("Validating DS record for "<first.name<first.name<first.name, i->second.records, i->second.signatures); } } @@ -1764,7 +1787,7 @@ RCode::rcodes_ SyncRes::updateCacheFromRecords(unsigned int depth, LWResult& lwr } else { if (validationEnabled()) { - LOG("Skipping validation because the current state is "< beenthere2; vState cnameState = Indeterminate; *rcode = doResolve(newtarget, qtype, ret, depth + 1, beenthere2, cnameState); - LOG("Updating validation state for response to "<