This year I have witnessed too many DNS stories - rising from the Government censorship programs to privacy-centric secure DNS (DNS over TLS) in order to protect the customers' queries from profiling or profiting businesses. There are some DNS which are attempting to block the malicious sites (IBM Quad9 DNS and SafeDNS) while others are trying to give un-restricted access to the world (Google DNS and CISCO OpenDNS) at low or no costs.
Yesterday, I read that Cloudflare has joined the race with it's DNS service (Quad1, or 126.96.36.199), and before I
dig further (#punintended) let me tell you - it's blazing fast! Initially I thought it's a classic April Fool's prank but then Quad1, or 188.8.131.52 or 4/1 made sense. This is not a prank, and it works just as proposed. Now, this blog post shall summarize some speed tests, and highlight why it's best to use Cloudflare Quad1 DNS.
Quad1 DNS 184.108.40.206 Speed Test
To test the query time speeds (in milliseconds or ms), I shall resolve 3 sites:
cybersins.com, my girl friend's website
palunite.de and my friend's blog
namastehappiness.com against 4 existing DNS services - Google DNS (220.127.116.11), OpenDNS (18.104.22.168), SafeDNS (22.214.171.124), IBM Quad9 DNS (126.96.36.199) and Cloudflare Quad1 (188.8.131.52)
|Website||Google DNS||OpenDNS||IBM Quad9||SafeDNS||CloudFlare|
This looks so unrealistic, that I had to execute these tests again to verify, and these numbers are indeed true.
Privacy and Security with Quad1 DNS 184.108.40.206
This is the key element that has not been addressed for quite a while. The existing DNS services are slow, but as well store logs and can profile a user based on the domains they query. The existing DNS services run on UDP port 53, and are vulnerable to MITM (man in the middle) kind of attacks. Also, your ISP has visibility in this clear text traffic to sensor or monetize you, if required. In the blogpost last weekend, Matthew Prince, co-founder and CEO of Cloudflare mentioned,
The web should have been encrypted from the beginning. It's a bug it wasn't. We're doing what we can do fix it ... DNS itself is a 35-year-old protocol and it's showing its age. It was never designed with privacy or security in mind.
The Cloudflare Quad1 DNS overcomes this by supporting both DNS over TLS and HTTPS which means you can setup your internal DNS server and then route the queries to Cloudflare DNS over TLS or HTTPS. To address the story behind the Quad1 or 220.127.116.11 choice, Matthew Prince quoted,
But DNS resolvers inherently can't use a catchy domain because they are what have to be queried in order to figure out the IP address of a domain. It's a chicken and egg problem. And, if we wanted the service to be of help in times of crisis like the attempted Turkish coup, we needed something easy enough to remember and spraypaint on walls.
Kudos to Cloudflare for launching this service, and committing to the privacy and security of the end-users in keeping short-lived logs. Cloudflare confirmed that they don't see a need to write customer's IP addresses to the disk, and retain the logs for more than 24 hours.
Cheers and be safe.