dnslookup is a simple command line interface to check on the status of your world wide resolutions. It relies on the system installed nslookup to make requests.
pip install dnslookup
dnslookup facebook.com Result for facebook.com Country DNS IP Result BD 203.112.202.195 173.252.110.27 BE 195.35.110.4 173.252.110.27 BG 213.169.55.10 173.252.110.27 BM 206.53.177.3 173.252.110.27 BO 200.58.161.25 173.252.110.27 JP 221.186.252.130 173.252.110.27 JM 200.9.115.2 173.252.110.27
positional arguments:
domain The domain that you would like to use.
optional arguments:
-h, --help show this help message and exit
--level LEVEL, -l LEVEL
This option allows you to: (1) use a large database of
DNS Servers from public-dns.info (2) Use just the
google DNS Servers. (3) Use your own server list.
--file FILE, -f FILE If provided, it will output to the file instead of
console. File must be a csv
--url URL URL to use with option (3) of level
Please let me know if there are other features you'd like