From: bert hubert Date: Wed, 11 Nov 2015 19:26:58 +0000 (+0100) Subject: silence ton of EDNS client subnet debugging X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf4ab7072a338ee0692f4747c6f0832717cd6a74;p=pdns silence ton of EDNS client subnet debugging --- diff --git a/pdns/lwres.cc b/pdns/lwres.cc index 6ca228949..b8f657fde 100644 --- a/pdns/lwres.cc +++ b/pdns/lwres.cc @@ -72,7 +72,7 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d if(srcmask) { EDNSSubnetOpts eo; eo.source = *srcmask; - cout<<"Adding request mask: "<(); // this is also our return value } @@ -189,7 +189,7 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d if(opt.first==8) { EDNSSubnetOpts reso; if(getEDNSSubnetOptsFromString(opt.second, &reso)) { - cerr<<"EDNS Subnet response: "<d_netmask.toString()<<", query was for "<d_netmask.match(who)<d_netmask.toString()<<", query was for "<d_netmask.match(who)<& content, const vector>& signatures, bool auth, boost::optional ednsmask) { - if(ednsmask) { - cerr<<"This data is actually subnet mask specific!!"< '"<d_content->getZoneRepresentation()<<"', auth="<toString() : "")< '"<d_content->getZoneRepresentation()<<"', auth="<toString() : "")< now) { // we still have valid data, ignore unauth data - cerr<<"\tStill hold valid auth data, and the new data is unauth, return\n"; + // cerr<<"\tStill hold valid auth data, and the new data is unauth, return\n"; return; } else { @@ -181,14 +178,13 @@ void MemRecursorCache::replace(time_t now, const DNSName &qname, const QType& qt // else cerr<<"\tNot nuking"<content<<" with ttl/ttd "<ttl<d_ttl); // XXX this does weird things if TTLs differ in the set ce.d_records.push_back(i->d_content); // there was code here that did things with TTL and auth. Unsure if it was good. XXX } - cerr<<"Calling replace"< nameservers, DNSName auth, bool flawedNSSe ednsmask=getEDNSSubnetMask(d_requestor, qname, *remoteIP); resolveret=asyncresolveWrapper(*remoteIP, qname, qtype.getCode(), doTCP, sendRDQuery, &d_now, ednsmask, &lwr); // <- we go out on the wire! - if(ednsmask && ednsmask->getBits()) { - cerr<<"Actually got something back.. "<toString()<