Skip to content

Commit

Permalink
Merge pull request #9528 from omoerbeek/backport-9471-to-rec-4.4.x
Browse files Browse the repository at this point in the history
rec: Backport 9471 to rec-4.4.x: Log when going Bogus because of a missing SOA in authority
  • Loading branch information
omoerbeek committed Sep 25, 2020
2 parents f64d65c + 874ad29 commit 735c219
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdns/syncres.cc
Expand Up @@ -3727,6 +3727,7 @@ bool SyncRes::processAnswer(unsigned int depth, LWResult& lwr, const DNSName& qn
LOG(prefix<<qname<<": status=NXDOMAIN, we are done "<<(negindic ? "(have negative SOA)" : "")<<endl);

if (state == vState::Secure && (lwr.d_aabit || sendRDQuery) && !negindic) {
LOG(prefix<<qname<<": NXDOMAIN without a negative indication (missing SOA in authority) in a DNSSEC secure zone, going Bogus"<<endl);
updateValidationState(state, vState::Bogus);
}

Expand All @@ -3741,6 +3742,7 @@ bool SyncRes::processAnswer(unsigned int depth, LWResult& lwr, const DNSName& qn
LOG(prefix<<qname<<": status=noerror, other types may exist, but we are done "<<(negindic ? "(have negative SOA) " : "")<<(lwr.d_aabit ? "(have aa bit) " : "")<<endl);

if(state == vState::Secure && (lwr.d_aabit || sendRDQuery) && !negindic) {
LOG(prefix<<qname<<": NODATA without a negative indication (missing SOA in authority) in a DNSSEC secure zone, going Bogus"<<endl);
updateValidationState(state, vState::Bogus);
}

Expand Down

0 comments on commit 735c219

Please sign in to comment.