Created
February 18, 2017 00:31
-
-
Save jaskerr/7c1beaa968a8c5ea5856cb3eff19b2d2 to your computer and use it in GitHub Desktop.
Compare Alexa Top1000 DNS Results
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
Script I used to to compare the top 1000 sites, requires curl compiled with ares, which is included in MacOS 10.9 or you can use port install curl +ares on macports for using different dns-servers. | |
Get the-1m.csv from Alexa http://www.alexa.com/topsites (right hand side of page) | |
for i in `head -n 1000 top-1m.csv | cut -f2 -d,`; do | |
echo "Site: $i"; | |
diff <(curl --ipv4 -s -v --dns-servers 66.x.x.4,66.x.x.4 --url http://$i/ 2>&1 | grep -v "0x" | grep -v "Date: ") <(curl --ipv4 -s -v --dns-servers 8.8.8.8,8.8.4.4 --url http://$i/ 2>&1 | grep -v "0x" | grep -v "Date: "); | |
done > 1000.diff.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hat-tip to Eric Helgeson
https://erichelgeson.github.io/blog/2013/12/31/i-fought-my-isps-bad-behavior-and-won/