mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-22 17:00:25 +00:00
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@118 e7d03fd6-7b0d-0410-9947-9c21f3af8025
17 lines
325 B
Python
Executable file
17 lines
325 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
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')
|
|
|