Subject: | Proposed change to Net::DNS::Resolver::query() |
I am working on software testing using Net::DNS as an engine to create and decode DNS packets. One of the problems I am facing is that it is currently not possible to get any information back from a query with ancount == 0 except the rcode. This doesn't work if you are trying to debug, for example, a negative proof sent by a DNSSEC secured zone.
The enclosed patch allows for an additional argument to query() which is a reference to a scalar. This scalar will be filled with the $ans structure which is normally returned. I chose this method, since changing the return value would seem to break too much existing software. Other suggestions of how to get this data back out in a cleaner way would also be appreciated.
Thanks.
Mike.
Message body not shown because it is not plain text.