From: Bert Hubert Date: Sat, 16 May 2009 15:28:01 +0000 (+0000) Subject: treat an initial Refused or NotImp as an indication of not supporting EDNS-PING. X-Git-Tag: rec-3.2~167 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98b58a72b5b5567f7082906eb5914c18f5e6d21d;p=pdns treat an initial Refused or NotImp as an indication of not supporting EDNS-PING. git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1355 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 51369b42e..ac319f73e 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -270,7 +270,7 @@ int SyncRes::asyncresolveWrapper(const ComboAddress& ip, const string& domain, i if(mode== EDNSStatus::CONFIRMEDPINGER) { // confirmed pinger! if(!res->d_pingCorrect) { L<d_rcode = RCode::ServFail; g_stats.ednsPingMismatches++; @@ -282,7 +282,12 @@ int SyncRes::asyncresolveWrapper(const ComboAddress& ip, const string& domain, i } else if(mode==EDNSStatus::UNKNOWN || mode==EDNSStatus::EDNSPINGOK || mode == EDNSStatus::EDNSIGNORANT ) { if(res->d_rcode == RCode::FormErr) { - // cerr<<"Downgrading to EDNSNOPING because of FORMERR!"<d_rcode == RCode::Refused || res->d_rcode == RCode::NotImp) ) { // this "fixes" F5 + // cerr<<"Downgrading an unknown status to EDNSNOPING because of RCODE="<d_rcode<d_rcode == RCode::FormErr) { - // cerr<<"Downgrading to mode 4, FORMERR!"<d_haveEDNS<<", EDNS-PING correct: "<d_pingCorrect<<", new mode: "<d_haveEDNS<<", EDNS-PING correct: "<d_pingCorrect<<", new mode: "<