A Domain Name System server benchmarking/ranking script

The script needs the following commands to be available: bc, dig, traceroute, ping, curl and getent and will notify in case any are missing. All these commands should be available by default on most distros.
If you are intercepting DNS requests on your gateway, make sure to add an exception for the IP you are testing from.
- Run the following code to clone this repo and make the script executable.
git clone https://github.com/sawsanders/DNSrank.git && cd ./DNSrank && chmod u+x run-DNSrank
- Edit the file run-DNSrank to set up some parameters. Defaults should work out of the box.
- Edit the file servers.txt to add or remove DNS servers. Some servers are already setup.
- Edit the file domains.txt to add or remove test domains. Some domains are already setup.
- Execute
./run-DNSrankto start testing.
EDIT: I have changed this script to pull the configured number of most used, non-blocked domains from you own Pi-hole database and use those for the test. This seems like a better real world test of resolvers to me.