On 7/22/2012 10:19 AM, Paul Wouters wrote:
(I don't think this made it to the list before, mixup of email addresses)
Please consider including this patch,
Paul
---------- Forwarded message ----------
Date: Mon, 2 Jul 2012 17:45:08
From: Paul Wouters <[email protected]>
Cc: Paul Vixie <[email protected]>
To: [email protected]
Subject: PATCH: dig warn user when querying ANY towards recursive server
Hi,
As recently came up, when querying a recursive caching server for ANY
will only result on cached entries being returned, and not the whole
possible set. For that you need to query the authoritative server.
I wasn't aware of this, and since I'm sure I'll forget about this again
too, I wrote a patch for dig to remind me. Please apply :)
Don't forget that recursive servers can also host the zone being
queried. Testing for the "aa" flag makes the message more accurate.
if ((query->lookup->rdtype == dns_rdatatype_any) &&
((msg->flags & DNS_MESSAGEFLAG_RA) != 0) &&
(msg->flags & DNS_MESSAGEFLAG_AA) == 0)
printf("\n\n;; WARNING: Requested ANY data "
"from a non-authoritative recursive "
"server.\n;; The cached answer "
"might be incomplete.\n\n");
------
Andris
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
from this list
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users