Created
December 8, 2009 04:17
-
-
Save jefftriplett/251396 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
It's worth pointing out that these results come from Lawrence, KS and my ISP is Sunflower Broadband. | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| Domain | Your ISP | Google | 4.2.2.2 | OpenDNS | DNS Adv. | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| lifehacker.com | 3 msec | 39 msec | 26 msec | 35 msec | 49 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| facebook.com | 2 msec | 41 msec | 26 msec | 40 msec | 50 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| manu-j.com | 1 msec | 38 msec | 26 msec | 35 msec | 48 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| reddit.com | 17 msec | 38 msec | 28 msec | 36 msec | 49 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| tb4.fr | 1 msec | 41 msec | 27 msec | 35 msec | 50 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| bbc.co.uk | 1 msec | 38 msec | 31 msec | 142 msec | 149 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ |
This file contains hidden or 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
This one is slightly modified just to get one of Sunflowers name servers directly (to prevent my router from caching). Thanks to Matt (juice) for pointing this out. | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| Domain | Your ISP | Sunflower | 4.2.2.2 | OpenDNS | DNS Adv. | | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| lifehacker.com | 1 msec | 8 msec | 37 msec | 24 msec | 40 msec | 47 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| facebook.com | 1 msec | 9 msec | 38 msec | 25 msec | 34 msec | 48 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| manu-j.com | 1 msec | 59 msec | 38 msec | 24 msec | 40 msec | 49 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| reddit.com | 14 msec | 12 msec | 38 msec | 72 msec | 36 msec | 52 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| tb4.fr | 3 msec | 164 msec | 37 msec | 34 msec | 35 msec | 52 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ | |
| bbc.co.uk | 1 msec | 8 msec | 39 msec | 26 msec | 38 msec | 47 msec | | |
+-------------------------+------------+------------+------------+------------+------------+ |
This file contains hidden or 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 | |
# | |
# I made a few changes just to support Mac but the original comes from: | |
# http://www.manu-j.com/blog/opendns-alternative-google-dns-rocks/403/ | |
# | |
isp=$(dig +noall +stats 2>&1 | awk '$2~/^SERVER:$/{split($3,dnsip,"#");print dnsip[1]}'); | |
m="-------------------------------------------------------------------------------"; | |
s=" "; | |
h="+${m:0:25}+${m:0:12}+${m:0:12}+${m:0:12}+${m:0:12}+${m:0:12}+"; | |
header=("Domain${s:0:23}" "Your ISP${s:0:10}" "Google${s:0:10}" "4.2.2.2${s:0:10}" "OpenDNS${s:0:10}" "DNS Adv.${s:0:10}"); | |
echo "${h}"; | |
echo "| ${header[0]:0:23} | ${header[1]:0:10} | ${header[2]:0:10} | ${header[3]:0:10} | ${header[4]:0:10} | ${header[5]:0:10} |"; | |
echo "${h}"; | |
for i in "lifehacker.com" "facebook.com" "manu-j.com" "reddit.com" "tb4.fr" "bbc.co.uk"; | |
do | |
ii="${i}${s:23}"; | |
echo -n "| ${ii:0:23} |"; | |
for j in "${isp}" "8.8.8.8" "4.2.2.2" "208.67.222.222" "156.154.70.1"; | |
do | |
r="${s:10}$(dig +noall +stats +time=9 @${j} ${i} 2>&1 | awk '$2~/^Query$/{print $4" "$5}')"; | |
echo -ne " ${r:${#r}-10} |"; | |
done | |
echo -ne "\n${h}\n"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment