Guest User

pdns-deb6-cname-bug.patch

a guest
Mar 11th, 2013
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.83 KB | None | 0 0
  1. --- pdns-2.9.22/pdns/packethandler.cc.ORIGINAL  2008-12-06 11:44:38.000000000 -0800
  2. +++ pdns-2.9.22/pdns/packethandler.cc   2009-11-11 22:16:02.000000000 -0800
  3. @@ -792,13 +792,13 @@
  4.      if(weAuth) {
  5.        DLOG(L<<Logger::Warning<<"Soa found: '"<<sd.qname<<"'"<<endl);
  6.        ;
  7.      }
  8.      if(!weAuth) {
  9.        DLOG(L<<Logger::Warning<<"We're not authoritative"<<endl);
  10. -      if(p->d.rd || target==p->qdomain) { // only servfail if we didn't follow a CNAME
  11. +      if(p->d.rd && target==p->qdomain) { // only servfail if we didn't follow a CNAME
  12.     DLOG(L<<Logger::Warning<<"Adding SERVFAIL as we did not followed a CNAME"<<endl);
  13.     if(d_logDNSDetails)
  14.       L<<Logger::Warning<<"Not authoritative for '"<< target<<"', sending servfail to "<<
  15.         p->getRemote()<< (p->d.rd ? " (recursion was desired)" : "") <<endl;
  16.  
  17.     r->setA(false);
Advertisement
Add Comment
Please, Sign In to add comment