/usr/share/doc/python3-dnspython/examples/mx.py is in python3-dnspython 1.12.0-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 | #!/usr/bin/env python3
import dns.resolver
answers = dns.resolver.query('nominum.com', 'MX')
for rdata in answers:
print('Host', rdata.exchange, 'has preference', rdata.preference)
|