On 6/20/12 6:53 AM, "Stephane Bortzmeyer" <[email protected]> wrote:

>On Mon, Jun 04, 2012 at 05:08:22PM -0300,
> Leandro Reox <[email protected]> wrote
> a message of 30 lines which said:
>
>> is there any way to retrieve all the records in a zone/domain via
>> some query ?
>
>DNSpython does not support ANY queries :-(

I think you may be mistaken.  This code works perfectly well for me:
import dns.rdatatype
import dns.message
import dns.query
message = dns.message.make_query("www.netflix.com", dns.rdatatype.ANY)
response = dns.query.udp(message, "8.8.8.8")


response.answer is a list of RRsets (three RRsets in this case - CNAME, A,
AAAA)

-roy

_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo/dnspython-users

Reply via email to