git.samba.org
/
idra
/
samba.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
s4-python: Move dnspython to lib/, like the other Python modules
[idra/samba.git]
/
lib
/
dnspython
/
examples
/
xfr.py
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)