Skip to content

Commit

Permalink
Added warning if trailing dot is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed May 28, 2013
1 parent aa0976b commit 2b18bcf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pdns/packethandler.cc
Expand Up @@ -1372,7 +1372,12 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
DLOG(L<<"Have unauth data, so need to hunt for best NS records"<<endl); DLOG(L<<"Have unauth data, so need to hunt for best NS records"<<endl);
if(tryReferral(p, r, sd, target)) if(tryReferral(p, r, sd, target))
goto sendit; goto sendit;
L<<Logger::Error<<"Should not get here ("<<p->qdomain<<"|"<<p->qtype.getCode()<<"): please run pdnssec rectify-zone "<<sd.qname<<endl; // check whether this could be fixed easily
if (*(rr.qname.rbegin()) == '.') {
L<<Logger::Error<<"Should not get here ("<<p->qdomain<<"|"<<p->qtype.getCode()<<"): you have a trailing dot, this could be the problem (or run pdnssec rectify-zone " <<sd.qname<<")"<<endl;
} else {
L<<Logger::Error<<"Should not get here ("<<p->qdomain<<"|"<<p->qtype.getCode()<<"): please run pdnssec rectify-zone "<<sd.qname<<endl;
}
} }
else { else {
DLOG(L<<"Have some data, but not the right data"<<endl); DLOG(L<<"Have some data, but not the right data"<<endl);
Expand Down

0 comments on commit 2b18bcf

Please sign in to comment.