Skip to content

Instantly share code, notes, and snippets.

@davej
Created December 3, 2009 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davej/248672 to your computer and use it in GitHub Desktop.
Save davej/248672 to your computer and use it in GitHub Desktop.
# !/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