This file is indexed.

/usr/share/doc/python3-dns/examples/test2.py is in python3-dns 3.0.4-1.

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
11
12
13
14
15
16
17
#!/usr/bin/python3

import sys ; sys.path.insert(0, '..')
import DNS
# automatically load nameserver(s) from /etc/resolv.conf
# (works on unix - on others, YMMV)
DNS.ParseResolvConf()

r=DNS.Request(qtype='mx')
res = r.req('connect.com.au')
res.show()

r=DNS.Request(qtype='soa')
res = r.req('connect.com.au')
res.show()

print(DNS.revlookup('192.189.54.17'))