/usr/share/doc/python3-dns/examples/test4.py is in python3-dns 3.0.1-1ubuntu1.
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/python3
import sys ; sys.path.insert(0, '..')
import DNS
DNS.ParseResolvConf()
print(DNS.mxlookup("hotmail.com"))
print(DNS.mxlookup("connect.com.au"))
|