mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
fb39c6fb5e
Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Nov 12 22:40:53 CET 2014 on sn-devel-104
15 lines
357 B
Python
Executable File
15 lines
357 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import dns.query
|
|
import dns.resolver
|
|
import dns.zone
|
|
|
|
soa_answer = dns.resolver.query('dnspython.org', 'SOA')
|
|
master_answer = dns.resolver.query(soa_answer[0].mname, 'A')
|
|
|
|
z = dns.zone.from_xfr(dns.query.xfr(master_answer[0].address, 'dnspython.org'))
|
|
names = z.nodes.keys()
|
|
names.sort()
|
|
for n in names:
|
|
print z[n].to_text(n)
|