summaryrefslogtreecommitdiff
path: root/lib/dnspython/examples/xfr.py
blob: 5cd6f55c06c7cb08f6f553b633bf759d6eaa5cf0 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python

import dns.query
import dns.zone

z = dns.zone.from_xfr(dns.query.xfr('204.152.189.147', 'dnspython.org'))
names = z.nodes.keys()
names.sort()
for n in names:
        print z[n].to_text(n)