Skip to content

Commit

Permalink
Merge pull request PowerDNS#3710 from pieterlexis/always-validate
Browse files Browse the repository at this point in the history
Always validate on 'validate' and 'log-fail'
  • Loading branch information
Habbie committed Apr 18, 2016
2 parents 7510711 + da3732b commit d7af3b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pdns/pdns_recursor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,9 @@ void startDoResolve(void *p)
else {
pw.getHeader()->rcode=res;

if(haveEDNS) {
// FIXME: haveEDNS is not the way to handle initiation of validation, we
// should look for the AD bit in the header, see #3682
if(haveEDNS || g_dnssecmode == DNSSECMode::ValidateAll || g_dnssecmode==DNSSECMode::ValidateForLog) {
if(g_dnssecmode != DNSSECMode::Off && ((edo.d_Z & EDNSOpts::DNSSECOK) || g_dnssecmode == DNSSECMode::ValidateAll || g_dnssecmode==DNSSECMode::ValidateForLog)) {
if(sr.doLog()) {
L<<Logger::Warning<<"Starting validation of answer to "<<dc->d_mdp.d_qname<<" for "<<dc->d_remote.toStringWithPort()<<endl;
Expand Down

0 comments on commit d7af3b0

Please sign in to comment.