[dns-operations] 2600::a1 (ns1-auth.sprintlink.net)

Robert Edmonds edmonds at mycre.ws
Thu Feb 16 20:25:02 UTC 2017


Robert Edmonds wrote:
> If I understand correctly, this message is printed when the answer comes
> back with RD=1 and RA=0. dig +norec doesn't suppress the warning in all
> cases, because an auth could still send that header bit pattern.

Not sure, but I think this would fix the corner case.

diff --git a/bin/dig/dig.c b/bin/dig/dig.c
index 6e183d48f8..a827917237 100644
--- a/bin/dig/dig.c
+++ b/bin/dig/dig.c
@@ -583,6 +583,7 @@ printmessage(dig_query_t *query, dns_message_t *msg, isc_boolean_t headers) {
 			       msg->counts[DNS_SECTION_ADDITIONAL]);
 
 			if (msg != query->lookup->sendmsg &&
+			    (query->lookup->recurse == ISC_TRUE) &&
 			    (msg->flags & DNS_MESSAGEFLAG_RD) != 0 &&
 			    (msg->flags & DNS_MESSAGEFLAG_RA) == 0)
 				printf(";; WARNING: recursion requested "

-- 
Robert Edmonds



More information about the dns-operations mailing list