DNS RESPONSE TIME

DNS speed test: which public resolver is fastest for you?

Time four public DNS resolvers from your own browser and see which answers fastest, for cached and uncached lookups.

DNS speed test
Ready when you are
The test sends about 60 small DNS lookups from your browser to four public resolvers over HTTPS. The uncached lookups use random names under whatismypublicip.com, so no one else’s site is queried. Times are medians in milliseconds, and lower is better.
Read this first

What this test measures, and what it does not

A web page cannot send DNS queries to a resolver of your choice, so this test uses DNS over HTTPS (DoH): your browser asks each public resolver a question over an ordinary HTTPS request and times how long the answer takes. That is a fair way to compare the four resolvers from where you are, but there are two limits you should know about.

First, each time includes the trip from your browser to the resolver’s nearest server, plus the HTTPS overhead, so it is higher than a plain DNS lookup from your router or operating system would be. Second, it cannot test your current ISP resolver, because browsers cannot reach it. Use the numbers to compare the four against each other. For a test of the DNS you use today, run a tool such as dig or nslookup and read the query time.

How to read the results

Cached, uncached and first request

Cached answer

A lookup for popular sites that the resolver very likely has in its cache. This is the time that matters for most browsing, and it mostly reflects how close the resolver is to you.

Uncached answer

A lookup for a random name that nobody has asked for before, so the resolver has to ask the authoritative server. It shows how fast the resolver is when it must do the full job.

First

The first lookup (“first request”) includes the one-time cost of opening a secure connection to the resolver. It is shown for information and is not part of the other two figures.

Why results vary

Results change from run to run with your connection and the time of day. Run the test a few times, and treat gaps of a few milliseconds as a tie.

Switching

How to change your DNS server

Changing DNS is safe and easy to undo. The addresses below are the ones each provider publishes. Use the primary and secondary together, so that DNS keeps working if one of them is unreachable.

ProviderPrimary (IPv4)Secondary (IPv4)IPv6
Cloudflare1.1.1.11.0.0.12606:4700:4700::1111
Google Public DNS8.8.8.88.8.4.42001:4860:4860::8888
DNS.SB185.222.222.22245.11.45.112a09::
AliDNS223.5.5.5223.6.6.62400:3200::1

On your router (best, because it covers every device): sign in to the router admin page, find the DNS or Internet settings and enter the two addresses. On Windows: Settings, Network & internet, your connection, DNS server assignment, Edit, Manual. On macOS: System Settings, Network, your connection, Details, DNS. On iPhone: Settings, Wi-Fi, the i beside your network, Configure DNS, Manual. On Android: Settings, Network & internet, Private DNS, then enter a provider hostname such as one.one.one.one or dns.google.

Speed is only one reason to pick a resolver. Privacy policy, filtering options and reliability matter too, so read each provider’s own privacy statement before choosing. After a change, the DNS lookup tool and the propagation checker are useful for confirming things work.

FAQ

Frequently asked questions

What is a good DNS response time?

For a cached answer, anything under about 50 ms is good, and under 20 ms is very fast. Because this test goes over HTTPS from your browser, expect the numbers to be a little higher than a plain DNS query would give.

Does changing my DNS make my internet faster?

It does not change your download speed. A faster resolver can make pages start loading a little sooner, because the name lookup is the first step, but the gain is usually small.

Why is my own ISP DNS not in the list?

Browsers can only talk to DNS servers that offer DNS over HTTPS with cross-origin access, which ISP resolvers generally do not. That also means this test cannot say whether your current DNS is faster or slower than these four.

What do cached and uncached mean?

A cached answer is already stored on the resolver, so it replies at once. An uncached answer has to be looked up from the domain’s own name server first, which takes longer.

Why did one resolver fail?

Some networks, workplaces and countries block certain public resolvers, and a slow connection can time out. A failed resolver is shown as unreachable. It does not mean the resolver is down for everyone.

Is the test safe to run?

Yes. It sends a few dozen DNS lookups for popular sites and random names under this site’s own domain. Nothing is installed and no setting is changed.

Guides

Read more