dnsdiag
DNS Measurement, Troubleshooting and Security Auditing Toolset
Installation
There are several ways that you can use this toolset. However, using the source code is always recommended.
Source Code
Check out the git repository and install dependencies:
git clone https://github.com/farrokhi/dnsdiag.git
cd dnsdiag
pip3 install -r requirements.txt
You can alternatively install the package using pip:
pip3 install dnsdiag
dnsping
dnsping pings a DNS resolver by sending an arbitrary DNS query for given number of times.
dnsping blaataap.com
dnsping -s 8.8.8.8 blaataap.com
dnsping.py -c 5 --dnssec --flags --tls -t AAAA -s 9.9.9.9 blaataap.com
dnstraceroute
dnstraceroute is a traceroute utility to figure out the path that your DNS request is passing through to get to its destination. You may want to compare it to your actual network traceroute and make sure your DNS traffic is not routed to any unwanted path.
sudo dnstraceroute blaataap.com
sudo dnstraceroute -s 8.8.8.8 blaataap.com
./dnstraceroute.py --expert --asn -C -t A -s 8.8.4.4 blaataap.com
dnseval
dnseval is a bulk ping utility that sends an arbitrary DNS query to a give list of DNS servers. This script is meant for comparing response time of multiple DNS servers at once.
You can use dnseval to compare response times using different transport protocols such as UDP (default), TCP, DoT and DoH using –tcp, –tls and –doh respectively.
dnseval -c 10 blaataap.com
./dnseval.py --dnssec -t AAAA -f public-servers.txt -c10 blaataap.com
Source:
https://www.cyberciti.biz/faq/linux-unix-dig-command-examples-usage-syntax/
https://linuxmag.nl/listing-dnsdiag/