Last active
September 27, 2021 20:21
-
-
Save dedeibel/ea042f50b239632753ac035958145427 to your computer and use it in GitHub Desktop.
Compare some DNS response times
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DOM=scalzi.com | |
if [[ -n "$1" ]]; then | |
DOM="$1" | |
fi | |
echo $DOM | |
# parallel -j 10 -N 2 --tagstring '{2} ({1})' "dig @{1} a "${DOM}" | egrep time" \ | |
parallel -j 10 -N 2 --tagstring '{2} ({1})' "dig @{1} a "${DOM}" +noauthority +noadditional | grep -Po 'A.*(\.[^.]+){3}|(?:time: )(.*)' | tac | paste -sd '\t'" \ | |
::: \ | |
9.9.9.9 quad9 \ | |
149.112.112.112 quad9_secondary \ | |
9.9.9.11 quad9_ecs \ | |
9.9.9.10 quad9_unfiltered \ | |
2620:fe::fe quad9_IPv6 \ | |
8.8.8.8 google \ | |
1.1.1.1 cloudflare \ | |
2606:4700:4700::64 cloudflare_IPv6 \ | |
84.200.69.80 dns.watch \ | |
82.145.9.8 1und1 \ | |
| column -t \ | |
| sort -h |
Author
dedeibel
commented
Sep 26, 2021
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment