Created
December 3, 2009 23:33
-
-
Save davej/248672 to your computer and use it in GitHub Desktop.
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/sh | |
# I stole this little script from somewhere but can't remember where, sorry for not including credit. | |
for i in "rte.ie" "facebook.com" "reddit.com" "tb4.fr" "bbc.co.uk" "boards.ie" "google.com" | |
do | |
for j in "4.2.2.2" "8.8.8.8" "208.67.222.222" "89.101.160.4" # Tests Level 3, Google Public DNS, OpenDNS, UPC default DNS. | |
do | |
echo $j $i `dig @$j $i | grep Query | awk -F ":" '{print $2}'` | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment