Your provider’s DNS or a public one?
What Cloudflare, Google and Quad9 say they record, how they behave when tested, and how to choose between them and the resolver your internet provider gives you.
3 min read
On this page
Every name you look up goes to a resolver, and whoever runs it could keep a list. By default it's your internet provider's. Changing it takes a minute. Whether that's better depends on what you're trying to avoid.
What changes, and what doesn't
Your provider carries your traffic whichever resolver you use. With a public resolver and plain DNS, it can still read each lookup as it passes. Only with encrypted DNS can't it, and it can usually still tell the site from the connection itself.
So switching mainly changes who holds a record of it, under which rules, and how the resolver behaves. It doesn't make you anonymous to anyone.
What they say they record
Read the originals, which have details a table can't hold: Cloudflare, Google, Quad9. Two notes:
- Google says it may keep temporary logs longer than 48 hours for security and abuse problems.
- Cloudflare says that an accounting firm has examined its practices and links to the report. A policy is a promise, and an audit is some evidence for it.
Your internet provider's policy is harder to compare. In some countries, providers are required to keep records or to block names, and in others they may use the data commercially. Look for "DNS" in its privacy policy. If it isn't mentioned, that isn't a promise of anything.
How they behave
Policies can't be tested from outside. Behavior can:
Broken signatures. All three refused to answer for www.dnssec-failed.org, a name whose DNSSEC signatures are deliberately wrong. That protects you from forged answers for names that are signed.
Blocking. Quad9 blocks names it considers malicious. It has a test name for it:
dig +short isitblocked.org @1.1.1.174.208.236.124dig +noall +comments isitblocked.org @9.9.9.9 | grep -E 'status|recursion';; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 13243;; WARNING: recursion requested but not availableOn Windows: nslookup isitblocked.org 9.9.9.9. The answer claims that the name doesn't exist. Quad9's other addresses behave differently: 9.9.9.10 doesn't block, and 9.9.9.11 adds client subnet.
Client subnet. Some resolvers pass part of your address, usually all but the last number, to the DNS servers of each site you look up, so that the site can send you to a nearby server. Google's does. It can make downloads faster, and it tells more parties roughly where you are. Cloudflare's and Quad9's main addresses didn't.
Speed
Advice that one resolver is "the fastest" doesn't travel. We made one lookup through each from five home connections:
The default was within 11 ms of the best in four of the five, and the slowest by far in the other. Differences of 10 ms are invisible: after the first lookup the answer is stored on your device. A resolver that's far away or overloaded can be felt, and the only useful test is on your own connection:
for r in 1.1.1.1 8.8.8.8 9.9.9.9; do echo "$r $(dig www.wikipedia.org @$r | grep 'Query time')"; doneforeach ($r in '1.1.1.1','8.8.8.8','9.9.9.9') { "$r $((Measure-Command { Resolve-DnsName www.wikipedia.org -Server $r -DnsOnly }).TotalMilliseconds) ms" }Run it several times, and ignore the first.
Which to choose
- You don't want your provider to have the list: a public resolver with encryption. Without it, you've only added a second party.
- You want fewer dangerous sites to open: one that blocks, such as Quad9. It complements protection on the device and doesn't replace it.
- You want the least recorded: compare the first two rows of the policy table.
- It's a work or school device: leave it. Internal names need the organization's resolver.
- You use a VPN: use its resolver. Another one means that a leak check has something to find, and one more party knows.
- Everything works and you trust your provider: there's no need to change.
Set two addresses of the same service (1.1.1.1 and 1.0.0.1, or 8.8.8.8 and 8.8.4.4). Mixing services doesn't give you a main one and a spare: systems use both, and each sees part of the list.
Check the result
Look at the names of the networks that answer. Quad9 in particular appears under the names of hosting companies it works with, so an unfamiliar name isn't automatically a problem. If your provider's name is still there, look for the browser's own setting, a second address, or a router that intercepts DNS.