Permalink
Browse files

respond REFUSED instead of NOERROR for "unknown zone" situations

  • Loading branch information...
1 parent 55b0653 commit 194f4d2d70c008f88846b3d157ffdef1b06a0b82 @Habbie Habbie committed with mind04 Feb 20, 2015
Showing with 2 additions and 1 deletion.
  1. +2 −1 pdns/packethandler.cc
@@ -1099,7 +1099,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 194f4d2

Please sign in to comment.