On 14 nov 2012, at 10:12, "Dick Franks via RT" <bug-Net-DNS@rt.cpan.org> wrote:
Show quoted text> On Tue Nov 13 05:29:23 2012, CDYBED wrote:
>> A nameserver returns a packet with a wildly incorrect AUTHORITY field
>
> This is a protocol violation at the name server.
Yes, it is. There is no question about that.
Show quoted text> I assume you are using Net::DNS 0.68 and the corrupt packet was returned
> by resolver->send().
Yes.
Show quoted text> Raising an exception would be an incompatible change to the published
> API, and is of little practical value;
It would be of significant practical value to us, since what we're writing is a diagnostic tool (
https://github.com/dotse/dnscheck). And I'm certainly not asking for a change to the default behavior, but the ability to set a flag (or something along those lines) saying that yes, I do indeed want to get any exceptions that may happen.
I had a look at the code to see if this would be easy to implement, but from what I saw it'd be quite difficult (or at least a lot of work).
Do you think it'd at least be possible to make Net::DNS not print error messages to stderr when this happens?
Show quoted text> A corrupt reply packet will be partially decoded and any remaining
> content discarded. For that reason it is unsafe to assume that the
> actual number of RRs in each section matches the length declared in the
> header.
It would be nice if this was mentioned in the documentation.
--
Calle Dybedahl
calle@init.se -*- +46 703 - 970 612