From 2ecd9bd5c0cdbad8ad2560596f0b16c252b75607 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Thu, 13 Feb 2014 16:42:02 +0000 Subject: [PATCH] No CD in forwarded queries unless dnssec-debug for TCP too. --- src/forward.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/forward.c b/src/forward.c index 27f619b..1b6f80e 100644 --- a/src/forward.c +++ b/src/forward.c @@ -1431,7 +1431,10 @@ unsigned char *tcp_request(int confd, time_t now, if (option_bool(OPT_DNSSEC_VALID)) { size = add_do_bit(header, size, ((char *) header) + 65536); - 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