/usr/share/doc/python-dnspython/examples/xfr.py is in python-dnspython 1.9.4-0ubuntu3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | #!/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)
|