DNS Test: How to Test Your DNS Server Speed

By Saif Ullah · Last reviewed 2026-11-29 · 6 min read

A DNS test measures how long your DNS server takes to turn a website name into an IP address. A browser cannot run that test, because browsers have no DNS API, so this page gives you the real test instead: two minutes in your terminal with dig, nslookup, or PowerShell.

Test your current resolver first for a baseline, then compare Cloudflare 1.1.1.1, Google 8.8.8.8, and Quad9 9.9.9.9, three runs each, with a fresh unique name for every run. Keep the fastest for your location, and switch it at the router so every device benefits.

Every website visit starts with a DNS lookup: your device asks a DNS server to turn a name like example.com into an IP address before anything can load. When that lookup is slow, every new site feels sluggish even though your download speed is fine, and when it fails, the page does not load at all. A DNS test measures that lookup time so you can tell whether your resolver is the problem or something else is.

On this page

The honesty note: this page has no run button

Step 1: test your current resolver for a baseline

Step 2: compare resolvers head to head

How to read the result

Quick checks that are not DNS tests

What to do with the result

Frequently asked questions

Sources

A browser cannot send DNS queries, time a resolver, or compare resolvers. There is no browser API for DNS lookups, so any page that claims to test your DNS in the browser is timing something else, usually an HTTPS request to one provider, and calling it a DNS test. We do not do that here. The test below runs on your own machine, takes about two minutes, and measures real lookups.

The same applies to pinging a resolver address: ping 8.8.8.8 checks whether Google DNS is reachable and how long the round trip takes, but that is network latency to the server, not lookup time. Use ping as a reachability check, and the commands below as the DNS test.

Measure what you have now before changing anything, so you have something to compare against. Use a domain you have not visited recently, so the answer is not already sitting in a cache.

Read the Query time line at the bottom of the output. That is the lookup time in milliseconds, and the SERVER line tells you which resolver answered.

This shows which server answered and the address it returned, but nslookup does not print a query time. For timing on Windows, use PowerShell:

Run the command three times and note the middle value. The first run is usually the slowest because the lookup is uncached; the later runs come from cache and answer in a few milliseconds.

Query a fresh, never used name against each public resolver in turn, so the only thing changing is the resolver. Use a different unique name for every query, for example a random subdomain such as test-1a2b.example.com for the first resolver and test-3c4d.example.com for the next. Flushing your local cache does not flush the resolver cache, so repeating the same name still measures a cached answer at the resolver, even after a local flush. The addresses below come from the providers own documentation and the sources at the bottom of this page.

The plain Cloudflare resolver filters nothing; 1.1.1.2 blocks malware and 1.1.1.3 adds adult content filtering. Quad9 blocks known malicious domains by default, and OpenDNS includes phishing and malware blocking. The full comparison, including privacy, is in the best DNS servers guide .

dig @1.1.1.1 test-1a2b.example.com | grep "Query time" dig @8.8.8.8 test-3c4d.example.com | grep "Query time" dig @9.9.9.9 test-5e6f.example.com | grep "Query time" dig @208.67.222.222 test-7g8h.example.com | grep "Query time"

Key points

Frequently asked questions

More from FastSpeedTest