mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
4bbc3ff037
This also avoids it from being installed if it's already present on the system.
11 lines
212 B
Python
Executable File
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)
|