1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/lib/dnspython/examples/xfr.py
Jelmer Vernooij 4bbc3ff037 s4-python: Move dnspython to lib/, like the other Python modules
This also avoids it from being installed if it's already present on the
system.
2010-03-29 18:05:29 +02:00

11 lines
212 B
Python
Executable File

#!/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)