--dnssec-debug

This commit is contained in:
Simon Kelley
2014-01-25 17:03:07 +00:00
parent 0744ca66ad
commit 5b3bf92101
5 changed files with 15 additions and 5 deletions

View File

@@ -386,7 +386,10 @@ static int forward_query(int udpfd, union mysockaddr *udpaddr,
if (option_bool(OPT_DNSSEC_VALID))
{
plen = add_do_bit(header, plen, ((char *) header) + daemon->packet_buff_sz);
header->hb4 |= HB4_CD;
/* For debugging, set Checking Disabled, otherwise, have the upstream check too,
this allows it to select auth servers when one is returning bad data. */
if (option_bool(OPT_DNSSEC_DEBUG))
header->hb4 |= HB4_CD;
}
#endif