source:
trunk/server/lib/dnspython/examples/xfr.py
Last change on this file was 745, checked in by , 13 years ago | |
---|---|
File size: 222 bytes |
Line | |
---|---|
1 | #!/usr/bin/env python |
2 | |
3 | import dns.query |
4 | import dns.zone |
5 | |
6 | z = dns.zone.from_xfr(dns.query.xfr('204.152.189.147', 'dnspython.org')) |
7 | names = z.nodes.keys() |
8 | names.sort() |
9 | for n in names: |
10 | print z[n].to_text(n) |
Note:
See TracBrowser
for help on using the repository browser.