New: Post-Quantum Cryptography tools — is your domain quantum-safe? Check now

DNS Speed Test

Benchmark DNS resolver latency across major public DNS providers

Why DNS Speed Matters for Website Performance

Every web page load begins with one or more DNS lookups. Before your browser can connect to a website, it must resolve the domain name to an IP address. This lookup happens sequentially — the browser cannot begin downloading any resource until DNS resolves. On a page that loads assets from five different domains (main site, CDN, analytics, fonts, ad network), DNS latency compounds across all five lookups.

Research by Akamai Technologies found that a 100ms increase in page load time correlates with a 7% reduction in conversion rates. While DNS latency is only one component of total load time, it is uniquely unavoidable: it occurs before any HTTP connection is established. Reducing DNS latency from 150ms to 20ms can shave 130ms off every first visit to each new domain — a measurable improvement in user experience.

Geographic Considerations: Nearest Is Not Always Fastest

The geographic proximity of a DNS server to your location is a significant factor in latency, but it is not the only one. Major providers like Cloudflare and Google deploy anycast routing — the same IP address (e.g., 1.1.1.1) is simultaneously announced from hundreds of data centers worldwide, and BGP routing automatically directs your queries to the topologically nearest data center. This means 1.1.1.1 may resolve from a server physically close to you even though Cloudflare is a US company.

However, BGP routing is not perfectly optimal. Network peering agreements, congestion, and routing policies can cause your queries to travel a suboptimal path. A DNS server that is geographically farther away but well-peered with your ISP may outperform a closer one with poor peering. This is why empirical testing from your actual network is the only reliable method to identify your fastest resolver.

DNS Caching: How TTL Affects Repeat Lookups

DNS records include a Time-To-Live (TTL) value — the number of seconds a resolver should cache the record before querying again. Common TTL values range from 300 seconds (5 minutes) for dynamic records to 86400 seconds (24 hours) for stable records. While a record is cached, DNS lookups return instantaneously from local cache with zero network latency.

Your operating system maintains a DNS cache, and your browser maintains its own separate cache. The DNS resolver (e.g., Cloudflare 1.1.1.1) also caches records. This multi-layer caching means that frequently visited domains almost never incur the full lookup latency on repeat visits — making the "cold" lookup latency most important for first visits to new domains, which are common in professional and research contexts.

Recursive vs Authoritative DNS

The DNS servers tested by this tool are recursive resolvers (also called recursive nameservers or full-service resolvers). They accept queries from end users and perform the complete resolution process on their behalf — querying root servers, TLD servers, and authoritative servers as needed, then returning the final answer.

Authoritative nameservers, by contrast, hold the actual DNS records for specific domains. When you register a domain, you configure authoritative nameservers. Recursive resolvers query these authoritative servers as part of the resolution chain. The latency measured by this tool is the recursive resolver's total response time, which includes its own cache hits and misses plus any upstream queries required.

Anycast Routing Used by Major DNS Providers

Anycast is a network addressing and routing methodology where a single IP address is assigned to multiple servers in different locations. When you send a packet to an anycast address, routers automatically forward it to the "nearest" server based on BGP routing tables. Cloudflare operates over 300 anycast nodes; Google operates over 200. This means a query to 1.1.1.1 from Tokyo is served by a Tokyo data center, while the same query from London is served by a London data center — both using the same IP address.

Anycast provides excellent geographic load distribution and resilience: if one data center goes down, traffic automatically reroutes to the next nearest node with no configuration change required. This architecture is why major public DNS providers maintain consistently low latency globally, outperforming ISP DNS servers that typically operate from a small number of fixed locations.

How to Permanently Change DNS on Your Device or Router

For the broadest impact, change DNS on your router rather than individual devices. This applies the new DNS server to every device on your network — phones, smart TVs, gaming consoles, and computers — without per-device configuration. Access your router's administration panel (typically 192.168.1.1 or 192.168.0.1), navigate to WAN or Internet settings, and replace the automatic DNS addresses with your chosen provider's IPs.

For device-specific changes on Windows, navigate to Control Panel → Network and Sharing Center → Change adapter settings → right-click your adapter → Properties → Internet Protocol Version 4 → Use the following DNS server addresses. On macOS, go to System Preferences → Network → Advanced → DNS tab. On Android 9+, use Settings → Network and internet → Private DNS to configure encrypted DNS over TLS by hostname.

Frequently Asked Questions

Why do DNS speed test results vary between runs?
DNS response times fluctuate due to several factors: resolver cache state (a cached record returns instantly, while a cache miss requires upstream queries), network congestion at the time of the test, BGP route changes, and server load. For reliable benchmarking, run multiple tests at different times of day and average the results. Our tool uses fresh queries each time to simulate worst-case (uncached) lookup performance.
Does a faster DNS resolver improve gaming performance?
DNS speed has a small but measurable effect on gaming. When you first connect to a game server, DNS resolves the server hostname. A 100ms faster DNS lookup means your game loads 100ms faster. However, once connected, DNS has no effect on ping or in-game latency — those depend on the network path to the game server, not the DNS resolver. For gaming, the most impactful DNS change is switching to a provider that does not implement DNS-based throttling or QoS policies.
What does "Timeout" mean in the results?
A timeout means the DNS server did not respond within the 3-second window. This can occur because the DNS server is temporarily unreachable, the server is filtering queries from the server running this test, or network conditions caused significant packet loss. A single timeout does not mean the server is unreliable — retry the test if you see unexpected timeouts, as they may be transient.
Should I use IPv4 or IPv6 DNS addresses?
If your network supports IPv6 (which most modern home and business networks do), using IPv6 DNS addresses like 2606:4700:4700::1111 (Cloudflare) offers no performance advantage over IPv4 addresses — DNS protocol performance is identical regardless of the transport address. The choice matters more for consistency: if your device prefers IPv6 connections, using IPv6 DNS avoids a protocol mismatch. Most devices that support IPv6 will use it automatically when both IPv4 and IPv6 DNS addresses are configured.
Does DNS caching mean the speed test results do not reflect real-world performance?
This test measures uncached (cold) lookup times, which represent the worst case. In real-world browsing, most lookups for popular domains are served from cache with near-zero latency. Uncached queries occur when you first visit a new domain, after a TTL expires, or when your resolver's cache is cleared (e.g., after a system restart). For frequent visitors to a small set of domains, actual DNS latency is mostly irrelevant because caching absorbs the overhead. For research and business use cases involving many new domains daily, cold lookup performance matters significantly.