Permalink
Browse files

implement scopemask cache blanking feature for packetcache

  • Loading branch information...
1 parent 39f37bc commit 606018f20c2fb75f76868202d0ffef57062e8104 @ahupowerdns ahupowerdns committed May 29, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 pdns/packethandler.cc
@@ -1391,7 +1391,12 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
}
editSOA(d_dk, sd.qname, r);
-
+ BOOST_FOREACH(const DNSResourceRecord& rr, p->getRRS()) {
+ if(rr.scopeMask) {
+ noCache=1;
+ break;
+ }
+ }
if(p->d_dnssecOk)
addRRSigs(d_dk, B, authSet, r->getRRS());

0 comments on commit 606018f

Please sign in to comment.