nslookup is a network administration command-line tool available for many computer operating systems for querying the Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. – Wikipedia
DNS record types
TA,TKEY,TLSA,TSIG,TXT,*,AXFR,IXFR,OPT – Wikipedia
dnspython is a DNS toolkit for Python. It supports almost all record types. It can be used for queries, zone transfers, and dynamic updates. It supports TSIG authenticated messages and EDNS0.
dnspython provides both high and low level access to DNS. The high level classes perform queries for data of a given name, type, and class, and return an answer set. The low level classes allow direct manipulation of DNS zones, messages, names, and records.
Download from Github.
git clone https://github.com/rthalley/dnspython
pip install dnspython
Download the source file, unzip it and run:
sudo python setup.py install