Moin!

On 20.06.2012, at 08:33, Casey Deccio wrote:

> On Wed, Jun 20, 2012 at 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 :-(
It does, but this has been discussed before.

> It seems like the AXFR is the right query type to use.
Well you want to do a zone transfer and not mess with the lower level stuff.

The following should work:

import dns.query
import dns.rdatatype
import dns.zone
z = dns.zone.from_xfr(dns.query.xfr('1.2.3.4', 'example.com'))

if the authoritative server allows zone transfers.

So long
-Ralf
---
Ralf Weber (Internet Citizen)
e: [email protected]



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

Reply via email to