Permalink
Browse files

respond REFUSED instead of NOERROR for "unknown zone" situations

Conflicts:
	pdns/packethandler.cc
  • Loading branch information...
1 parent a5b29c7 commit d7bec64af37b5e281b5a0a4641a877d3fffa57d6 @Habbie Habbie committed Feb 20, 2015
Showing with 2 additions and 1 deletion.
  1. +2 −1 pdns/packethandler.cc
@@ -1112,7 +1112,8 @@ DNSPacket *PacketHandler::questionOrRecurse(DNSPacket *p, bool *shouldRecurse)
addRootReferral(r);
}
else {
- DLOG(L<<Logger::Warning<<"setting 'No Error'"<<endl);
+ if (!retargetcount)
+ r->setRcode(RCode::Refused); // send REFUSED - but only on empty 'no idea'
}
goto sendit;
}

0 comments on commit d7bec64

Please sign in to comment.