{
// this removes duplicates from the packet in case we are not compressing
// for AXFR, no such checking is performed!
- cerr<<"addrecord, content=["<<rr.content<<"]"<<endl;
+ //cerr<<"addrecord, content=["<<rr.content<<"]"<<endl;
if(d_compress)
for(vector<DNSResourceRecord>::const_iterator i=d_rrs.begin();i!=d_rrs.end();++i)
if(rr.qname==i->qname && rr.qtype==i->qtype && rr.content==i->content) {
return;
}
- cerr<<"added to d_rrs"<<endl;
+ //cerr<<"added to d_rrs"<<endl;
d_rrs.push_back(rr);
}
weDone = weRedirected = weHaveUnauth = false;
while(B.get(rr)) {
- cerr<<"got content: ["<<rr.content<<"]"<<endl;
+ //cerr<<"got content: ["<<rr.content<<"]"<<endl;
if (p->qtype.getCode() == QType::ANY && !p->d_dnssecOk && (rr.qtype.getCode() == QType:: DNSKEY || rr.qtype.getCode() == QType::NSEC3PARAM))
continue; // Don't send dnssec info to non validating resolvers.
if (rr.qtype.getCode() == QType::RRSIG) // RRSIGS are added later any way.
weRedirected=1;
if(DP && rr.qtype.getCode() == QType::ALIAS) {
- haveAlias=DNSName(rr.content);
+ haveAlias=DNSName(rr.content);
}
// Filter out all SOA's and add them in later