Lines 792-804
Link Here
|
792 |
if(weAuth) { |
792 |
if(weAuth) { |
793 |
DLOG(L<<Logger::Warning<<"Soa found: '"<<sd.qname<<"'"<<endl); |
793 |
DLOG(L<<Logger::Warning<<"Soa found: '"<<sd.qname<<"'"<<endl); |
794 |
; |
794 |
; |
795 |
} |
795 |
} |
796 |
if(!weAuth) { |
796 |
if(!weAuth) { |
797 |
DLOG(L<<Logger::Warning<<"We're not authoritative"<<endl); |
797 |
DLOG(L<<Logger::Warning<<"We're not authoritative"<<endl); |
798 |
if(p->d.rd || target==p->qdomain) { // only servfail if we didn't follow a CNAME |
798 |
if(p->d.rd && target==p->qdomain) { // only servfail if we didn't follow a CNAME |
799 |
DLOG(L<<Logger::Warning<<"Adding SERVFAIL as we did not followed a CNAME"<<endl); |
799 |
DLOG(L<<Logger::Warning<<"Adding SERVFAIL as we did not followed a CNAME"<<endl); |
800 |
if(d_logDNSDetails) |
800 |
if(d_logDNSDetails) |
801 |
L<<Logger::Warning<<"Not authoritative for '"<< target<<"', sending servfail to "<< |
801 |
L<<Logger::Warning<<"Not authoritative for '"<< target<<"', sending servfail to "<< |
802 |
p->getRemote()<< (p->d.rd ? " (recursion was desired)" : "") <<endl; |
802 |
p->getRemote()<< (p->d.rd ? " (recursion was desired)" : "") <<endl; |
803 |
|
803 |
|
804 |
r->setA(false); |
804 |
r->setA(false); |