Python DNS toolkit
dnstk is a toolkit for building DNS clients and servers in Python.
dnstk includes its own client which works similar to dig:
$ dnstk-cli ddg.gg Response code: 0 Question section ddg.gg IN A Answer section ddg.gg IN A 126.96.36.199 ddg.gg IN A 188.8.131.52 ddg.gg IN A 184.108.40.206 ddg.gg IN A 220.127.116.11 $ dnstk-cli irc.darkscience.net -r AAAA Response code: 0 Question section irc.darkscience.net IN AAAA Answer section irc.darkscience.net IN CNAME irc.darkscience.ws irc.darkscience.ws IN AAAA 2a02:2770::21a:4aff:fec1:1628
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.