Archive for Technical argle-bargle

DNS showdown

I resolved the “top 1000 sites” via Google’s Public DNS, 4.2.2.2 and OpenDNS. Here are the results:


$ curl http://www.google.com/adplanner/static/top1000/ | grep _blank | grep -o http:[^\"]\* | grep -o //.\*/ | cut -d/ -f3 > top1000domains
$ time for i in `cat top1000domains`; do host $i 8.8.8.8 > /dev/null; done
real 11m42.183s
user 0m1.481s
sys 0m2.809s
$ time for i in `cat top1000domains`; do host $i 4.2.2.2 > /dev/null; done
real 14m14.926s
user 0m1.453s
sys 0m2.732s
$ time for i in `cat top1000domains`; do host $i 208.67.222.222 > /dev/null; done
real 8m11.168s
user 0m1.466s
sys 0m2.780s

Google beat 4.2.2.2. It seems like when I tried Google’s DNS when it was first made available, it was inferior to 4.2.2.2 but that appears to no longer be the case.

But OpenDNS (which I threw in for the hell of it) beat them both. They do show ads for non-existent hosts, which works my nerves. But maybe since they’re for profit, they’re able to be quicker.

(Not that this was very scientific.)

Comments