How to Fix Slow DNS Lookup: A Complete Speed Guide

Summarize with:

Before a single image, line of text, or button appears on a web page, your device has to do something invisible: translate the domain name into an IP address. That step is the DNS lookup — and when it’s slow, everything waits. No server response, no rendering, no interaction until the name is resolved.

A sluggish DNS lookup can quietly add a noticeable delay to every page load, hurting user experience and even search rankings. The good news: most causes are easy to diagnose and fix, often in minutes and at no cost. This guide walks through why DNS lookups slow down, how to measure yours, and exactly how to fix it — whether you’re a regular user or a site owner.

What is a DNS lookup (and why speed matters)

The Domain Name System (DNS) is the phone book of the internet: it converts a human-friendly name like copahost.com into the numeric IP address that computers use to connect. Every time you open a site your device hasn’t visited recently, it sends a query to a DNS server and waits for the answer before it can load anything.

That wait is small, but it’s on the critical path. Industry performance research indicates DNS resolution can account for a meaningful share of total page load time on a first visit — and on a slow resolver, the difference between a fast lookup and a slow one is dramatic.

Typical DNS response time by resolver

Lower is better. Approximate ranges for an uncached query.

Typical ISP DNS~80–200 ms
Public DNS (Cloudflare / Google)~8–20 ms
Cached locally< 1 ms

Values are typical industry ranges and vary by location and network. The takeaway is the order of magnitude: a public resolver can be many times faster than a default ISP server, and a cached result is effectively instant.

⏱️
Rule of thumb

A DNS lookup under 50 ms is usually imperceptible. Around 100 ms it becomes noticeable. Consistently over 150 ms starts to hurt perceived performance — and is your signal to apply the fixes below.

What causes a slow DNS lookup?

Slow resolution usually traces back to one of a handful of causes. As with most network issues, they split between problems on your side (the resolver and device you use) and problems on the website’s side (how the domain’s DNS is configured).

CauseWhat happensSide
Slow ISP resolverDefault ISP DNS servers are often slower and less optimized than public ones.Your side
Geographic distanceThe farther the DNS server, the longer each query takes to travel.Your side
Outdated / bloated DNS cacheStale or corrupted local cache entries cause delays and re-lookups.Your side
Too many external domainsEach third-party script, font, or tracker triggers its own lookup.Website side
Excessive CNAME chainingMultiple redirects between records add hops to every resolution.Website side
Overloaded nameserversSlow or low-tier nameservers at the host delay responses for all visitors.Website side
TTL set too lowVery short TTLs force resolvers to re-query constantly instead of caching.Website side
DNSSEC / TCP overheadValidation and TCP fallback can add latency if misconfigured.Website side

How to measure your DNS lookup time first

Don’t guess — measure. Knowing your current lookup time tells you whether you have a problem and lets you confirm the fix actually worked.

MethodHow to use it
Browser DevToolsPress F12Network tab → click any request → Timing section → read the DNS Lookup row.
dig (Linux / macOS)Run dig copahost.com and read the Query time value at the bottom.
nslookup (Windows)Run nslookup copahost.com to confirm which server answered and how.
Online toolsUse a DNS benchmark or checker to compare resolvers and propagation across regions.

If your lookups are consistently above 100 ms, your resolver is the likely bottleneck — start with the very first fix below.

How to fix slow DNS lookup (your side)

1. Switch to a faster public DNS server

This is the single most impactful fix for most people. ISP resolvers commonly respond in 80–200 ms; major public resolvers often respond in 8–20 ms — roughly a tenfold improvement on every query. Pick one and set it on your device or, better, your router.

ProviderPreferredAlternateNote
Cloudflare1.1.1.11.0.0.1Privacy-focused, very fast
Google Public DNS8.8.8.88.8.4.4Reliable, globally distributed
Quad99.9.9.9149.112.112.112Adds security filtering
💡
Tip — fix it once, at the router

Changing DNS in your router’s admin panel (usually 192.168.1.1) applies the faster resolver to every device on the network — phones, smart TVs, consoles — without configuring each one manually.

2. Flush your DNS cache

A stale or corrupted local cache can serve slow or wrong records. Clearing it forces fresh, accurate resolution.

SystemCommand
Windowsipconfig /flushdns
macOSsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Chrome (own cache)Open chrome://net-internals/#dnsClear host cache

3. Use a local caching resolver (advanced)

Power users on Linux can run a local caching resolver such as Unbound or systemd-resolved, which keeps recent answers close and dramatically cuts repeat lookup times. Tools like Pi-hole also cache DNS network-wide while filtering ads.

4. Clean up your network path

Disable unused or unknown network adapters so traffic takes the correct, fast route. On laptops that travel between networks, configuring DNS per-device (rather than only on one router) keeps speed consistent wherever you connect.

How to fix slow DNS lookup (website owner side)

If visitors experience slow loads everywhere, the bottleneck is in your domain’s DNS setup. These fixes benefit every visitor on every page load.

5. Move to a premium / global DNS network

Free DNS bundled with low-tier shared hosting is often not optimized for speed. Premium or globally distributed DNS (such as Cloudflare’s network) serves answers from the location closest to each visitor, cutting latency worldwide. For most small-to-medium sites, this is the most effective single improvement available.

6. Tune your TTL values

TTL (Time To Live) controls how long resolvers cache your records. Too low and visitors re-query constantly; too high and updates take too long to apply. Balance the two.

TTL valueEffectBest for
300s (5 min)Frequent re-lookups; fast to updateRecords you’re about to change
3600s (1 hour)Balanced caching and flexibilityMost general-purpose records
86400s (24 hours)Heavy caching; slow to updateStable records that rarely change

7. Reduce external domains and CNAME chains

Every third-party script, font, analytics tag, or tracker on your page triggers its own DNS lookup. Auditing and removing unnecessary external domains lowers total resolution time. Likewise, flattening long chains of CNAME redirects removes extra hops from each query.

8. Add dns-prefetch and preconnect hints

For the external domains you do keep, tell the browser to resolve them early. Adding resource hints in your page’s <head> lets DNS resolution start before the asset is actually needed, shaving time off the critical path.

Example:

<link rel="dns-prefetch" href="https://fonts.example.com">
<link rel="preconnect" href="https://fonts.example.com" crossorigin>Code language: HTML, XML (xml)

Where DNS sits in a page load

Understanding the order helps explain why DNS is so impactful: it’s one of the very first steps, and nothing else can start until it finishes.

1
DNS lookup — translate the domain into an IP address ← the focus of this guide
2
TCP connection — open a connection to that IP address
3
TLS handshake — establish the secure (HTTPS) connection
4
Content download — server sends the page, and it renders

Because DNS is step 1, a slow lookup delays steps 2, 3, and 4. This is why a site with powerful hosting and optimized code can still feel slow when DNS resolution lags.

Does slow DNS affect SEO?

Indirectly, yes. Google uses Core Web Vitals as a ranking signal, and Time to First Byte (TTFB) is influenced by DNS lookup speed. Faster DNS lowers TTFB, which can improve Largest Contentful Paint (LCP) — one of the metrics Google measures. Adding preconnect hints also reduces perceived load time for above-the-fold content. In short: faster DNS is good for users and for rankings.

💡
Tip

Much of DNS performance is decided by your host. A provider with fast, well-configured, globally reachable nameservers removes this bottleneck before it ever reaches your visitors. Copahost sets up your domain’s DNS for speed and reliability from day one.

Fast DNS starts with the right host

Copahost web hosting comes with fast, well-configured, globally reachable nameservers — so DNS never becomes the bottleneck that slows down your visitors. Reliable speed, set up correctly from day one.

Explore Copahost web hosting →

Frequently asked questions about slow DNS lookups

What causes a slow DNS lookup?

The most common cause is a slow default DNS server assigned by your ISP. Other causes include geographic distance to the DNS server, an outdated local DNS cache, too many external domains on a page, excessive CNAME chaining, overloaded nameservers at the host, and TTL values set too low. Causes split between your side (resolver and device) and the website side (DNS configuration).

What is a good DNS lookup time?

A cached lookup should be under 1 ms, and a fresh lookup from a fast public resolver typically lands around 8–20 ms. As a rule of thumb, anything under 50 ms is imperceptible, around 100 ms becomes noticeable, and consistently over 150 ms starts to hurt performance and is worth fixing.

How do I check my DNS lookup speed?

In any browser, press F12 to open DevTools, go to the Network tab, click a request, and read the DNS Lookup row in the Timing section. On Linux or macOS you can run “dig” and read the Query time value; on Windows use “nslookup”. Online DNS benchmark tools also let you compare resolvers.

What’s the single best fix for slow DNS?

For most users, switching from your ISP’s default DNS to a fast public resolver such as Cloudflare (1.1.1.1) or Google (8.8.8.8) is the most impactful change, often improving response time roughly tenfold. For website owners, moving the domain’s nameservers to a fast, globally distributed DNS network is usually the most effective improvement.

Should I change DNS on my router or each device?

Changing it on the router is the most efficient option because it automatically applies the faster DNS to every device on your network. Configuring individual devices is better for laptops that frequently move between different networks, so they keep fast DNS wherever they connect.

Does flushing the DNS cache speed things up?

It can, when the slowdown is caused by stale or corrupted cache entries. Flushing forces fresh resolution and accurate testing. It won’t make a fundamentally slow resolver fast, but it’s a quick, safe first step and is useful before measuring your lookup time.

Does slow DNS affect SEO?

Indirectly, yes. DNS lookup speed affects Time to First Byte, which influences Largest Contentful Paint — one of Google’s Core Web Vitals ranking signals. Faster DNS, combined with preconnect and dns-prefetch hints, reduces load time and can have a positive effect on rankings.

How can a website owner reduce DNS lookups?

Reduce the number of external domains (third-party scripts, fonts, trackers), since each one triggers its own lookup. Flatten long CNAME chains, use a premium globally distributed DNS network, set balanced TTL values, and add dns-prefetch and preconnect hints for the external domains you keep.

Conclusion

A slow DNS lookup is one of the most overlooked causes of a sluggish browsing experience — and one of the easiest to fix. For users, switching to a fast public resolver and flushing the cache solves most cases in minutes. For site owners, a fast global DNS network, sensible TTLs, fewer external domains, and resource hints deliver speed gains on every single page load. Measure first, apply the matching fix, then measure again to confirm the improvement.

Want to go deeper on how the internet’s naming layer works? Explore our related guides on DNS, hosting, and domains on the Copahost blog.

Share the Post:
Picture of Gustavo Gallas

Gustavo Gallas

Graduated in Computing at PUC-Rio, Brazil. Specialized in IT, networking, systems administration and human and organizational development​. Also have brewing skills.