Google DNS: A rare miss?

I’ve been a big fan of Google’s services for many years. GMail, Google Calendar, Google Talk, Google Voice, and Google Docs are all a regular part of my day.  (Admittedly, I haven’t quite figured out how I’ll use Google Wave, but I’m sure there’s a use for it somewhere.) So when I heard about Google offering a DNS service, I was very interested.  DNS (the Domain Name Service) is a vital part of the Internet.  It is what allows people to visit Funnel Fiasco without having to remember that the IP address is 72.52.153.36. Or to visit www.facebook.com without typing in 69.63.181.11.

A while ago, I switched from using my ISP’s DNS service to OpenDNS.  OpenDNS gives users the option to filter domains by content, which is a somewhat useful tool for parents and businesses.  Unfortunately, OpenDNS, like most ISP DNS services, returns a search page when a domain isn’t found. Sure, that might be handy for web browsing, but other services expect to be told a domain doesn’t exist when it doesn’t exist.  Google said that they’ll return appropriate responses for non-existent domains.

Before I made the switch, I decided to investigate which DNS service gave me the fastest responses.  I tested 8 DNS servers from 4 different services (Google, Comcast, OpenDNS, and Level3) at different times over the past few days.  The final result surprised me.  Google’s service was slower than both Level3 and OpenDNS, and slower than one of the two Comcast servers I tested.  Box plots are below, although it seems some of the calculation is off (for example, a DNS resolve time < 0 ms is not reasonable).

DNS resolve times for google.com

DNS resolve times for google.com

DNS resolve times for funnelfiasco.com

DNS resolve times for funnelfiasco.com

DNS resolve times for facebook.com

DNS resolve times for facebook.com

Average hostname resolve times in milliseconds

Google #1
(8.8.8.8)
Google #2
(8.8.4.4)
Level3 #1
(4.2.2.1)
Level3 #2
(4.2.2.2)
OpenDNS #1
(208.67.222.222)
OpenDNS #2
(208.67.222.220)
Comcast #1
(68.87.72.130)
Comcast #2
(68.87.77.130)
Google.com 51 42 25 25 25 26 24 62
Funnelfiasco.com 41 40 46 26 37 26 41 87
Facebook.com 39 37 26 25 25 29 25 63

So what’s the conclusion?  Well, it looks like the Level3 servers (4.2.2.1 and 4.2.2.2) are the fastest.  Tests by intMain.net support my own conclusions. Google’s DNS service might be faster for some people, but not for everyone.  If Google adds more servers, that might change.  In the meantime, it looks like I have some resolv.conf edits to make.

(P.S. Box plots created thanks to software from Vertex42.com)