Last year we moved a client's DNS from their domain registrar's default nameservers to a premium Anycast DNS provider. The website code did not change. The server did not change. The hosting plan stayed identical. Yet their Time to First Byte dropped by 180 milliseconds, and their global Lighthouse performance score jumped by 4 points overnight. The only thing that changed was how the internet found their server.
Most business owners treat DNS as a "set it and forget it" checkbox during domain registration. That is a mistake. DNS resolution is the very first step in every single page load, and it happens before a single byte of your website reaches the visitor's browser. If that step is slow, everything downstream is slow - no amount of image optimization or caching can claw back those lost milliseconds.
What Actually Happens When You Type a URL
Let us walk through the exact sequence of events when someone types www.yourcompany.com into their browser. This process takes between 20 and 300+ milliseconds depending on your DNS setup, and it repeats for every new visitor, every expired cache, and every unique subdomain.
Step 1: Browser Cache Check (0-1 ms)
The browser checks its own local DNS cache first. If you visited this domain recently and the cached record has not expired (more on that in a moment), the browser already knows the IP address. No network request needed. Chrome stores DNS records for up to 60 seconds by default.
Step 2: Operating System Cache (0-1 ms)
If the browser cache misses, the request goes to the operating system's DNS resolver cache. Windows, macOS, and Linux all maintain their own DNS cache. On Windows, you can see cached entries by running ipconfig /displaydns in the command prompt. This cache respects the TTL values set by the domain owner.
Step 3: Router/ISP Recursive Resolver (5-50 ms)
If the OS cache also misses, the query goes to the recursive resolver - usually your ISP's DNS server or a public resolver like Google (8.8.8.8) or Cloudflare (1.1.1.1). This resolver is the workhorse. If it has seen this domain recently from any of its users, it returns the cached answer immediately. If not, it starts a chain of lookups.
Step 4: Root Nameserver Query (5-30 ms)
The recursive resolver asks one of the 13 root nameserver clusters: "Where do I find .com domains?" The root server responds with the address of the .com TLD (Top-Level Domain) nameservers. There are only 13 root nameserver addresses, but through Anycast routing, there are actually over 1,700 physical root server instances worldwide. This query is almost always cached at the recursive resolver, so in practice it rarely happens for common TLDs.
Step 5: TLD Nameserver Query (5-30 ms)
The recursive resolver asks the .com TLD nameserver: "Where do I find yourcompany.com?" The TLD server responds with the authoritative nameserver addresses for your domain - these are the nameservers you configured when you set up your domain.
Step 6: Authoritative Nameserver Query (5-100+ ms)
Finally, the recursive resolver asks your domain's authoritative nameserver: "What is the IP address for www.yourcompany.com?" This server holds the actual DNS records you configured - A records, CNAME records, MX records, all of it. It returns the IP address, and the recursive resolver caches the answer for future queries.
Step 7: Connection Begins
The browser now has the IP address and can begin the TCP handshake, followed by the TLS handshake (for HTTPS), followed by the actual HTTP request. Only now does your web server receive the first packet.
In the worst case - no caches hit anywhere, authoritative nameserver on the other side of the planet - this process can take 300-500 milliseconds. For a returning visitor with warm caches, it might take under 5 milliseconds. The difference between these two scenarios is entirely controlled by your DNS configuration.
TTL: The Setting That Controls Everything
TTL stands for Time to Live, measured in seconds. It tells every cache in the chain how long to store your DNS record before checking for updates. We have seen clients running TTL values ranging from 60 seconds to 86,400 seconds (24 hours), and the choice has real consequences.
Low TTL (60-300 seconds):
- Caches expire quickly, forcing frequent lookups
- Changes propagate fast (useful during migrations)
- Higher DNS query volume means more latency for visitors
- Your nameserver handles more traffic
High TTL (3,600-86,400 seconds):
- Records cached for hours or a full day
- Fewer DNS lookups, faster average resolution
- Changes take hours to propagate globally
- Less load on your nameserver
Our recommended approach: Run a TTL of 3,600 seconds (1 hour) for stable records like your main A record and MX records. This balances fast propagation with efficient caching. When you know a migration or IP change is coming, lower the TTL to 300 seconds 48 hours before the change, make the switch, confirm everything works, then raise the TTL back up.
We have used this exact playbook for over 60 client migrations without a single extended outage. The 48-hour lead time ensures the old high-TTL records expire from caches worldwide before you make the actual change.
DNS Propagation: Why "Up to 48 Hours" Is Usually Wrong
Every hosting provider tells you DNS changes take "24-48 hours to propagate." This is a safe, conservative estimate, but the reality is more nuanced.
DNS propagation is not a single event that ripples outward from your nameserver. There is no propagation mechanism at all. What actually happens is that cached records expire at different times in different resolvers around the world, and each resolver fetches the new record independently when its cache expires.
If your TTL was 3,600 seconds, the vast majority of resolvers worldwide will have the new record within 1 hour. If your TTL was 86,400 seconds, some resolvers might serve the old record for up to 24 hours. The "48 hours" figure accounts for misbehaving resolvers that do not respect TTL values - yes, some ISP resolvers ignore your TTL and cache records for longer than specified. This is rare in 2026, but it still happens with a handful of smaller ISPs.
Practical tip: After making a DNS change, use a tool like dig with the +trace flag or an online propagation checker (whatsmydns.net) to verify the change from multiple geographic locations. If 90% of locations show the new record within 2 hours, you are fine. The stragglers will catch up.
Anycast DNS: The Speed Upgrade Most People Ignore
Standard DNS hosting places your authoritative nameservers in one or two data centers. A visitor in Tokyo querying a nameserver in Frankfurt adds 250+ milliseconds of round-trip latency just for the DNS lookup. Multiply that across all the DNS queries a page load triggers (your domain, your CDN subdomain, your analytics domain, your font provider), and you can easily lose half a second before any content loads.
Anycast DNS solves this by announcing the same IP address from dozens of data centers worldwide. When a resolver queries your nameserver, the request is automatically routed to the nearest physical location via BGP routing. The result: DNS lookups that take 5-20 milliseconds instead of 100-250 milliseconds.
The numbers we have measured across client sites:
| DNS Provider Type | Avg. Lookup Time (Global) | Locations |
|---|---|---|
| Registrar default DNS | 80-200 ms | 2-4 data centers |
| Budget DNS hosting | 40-120 ms | 5-15 data centers |
| Premium Anycast DNS | 5-30 ms | 30-80+ data centers |
For context, the difference between registrar DNS and premium Anycast DNS is often 100-170 milliseconds per lookup. On a typical page that triggers 3-5 DNS lookups for different domains, that is 300-850 milliseconds of unnecessary waiting.
DNS Providers Worth Considering
Cloudflare DNS - Free tier includes Anycast across 300+ cities. The fastest public authoritative DNS we have tested consistently. If you are already using Cloudflare for CDN or security, this is the obvious choice.
AWS Route 53 - Anycast network tied to Amazon's global infrastructure. $0.50 per hosted zone per month plus $0.40 per million queries. Reliable, well-documented, integrates with the AWS ecosystem.
Google Cloud DNS - 100% uptime SLA, Anycast across Google's network. $0.20 per zone per month. Slightly less geographic coverage than Cloudflare but backed by Google's infrastructure.
NS1 (now IBM) - Advanced traffic steering, filter chains, and real-time analytics. Premium pricing, but the traffic management features are unmatched for complex multi-CDN setups.
For most small to mid-size businesses, Cloudflare's free DNS tier delivers 90% of the benefit with zero additional cost. We have been recommending it to clients since 2019 and have had zero regrets.
Impact on First Byte Time and Core Web Vitals
Google's Largest Contentful Paint (LCP) metric - one of the three Core Web Vitals that directly influence search rankings - includes DNS resolution time. Every millisecond spent resolving DNS is a millisecond added to your LCP score.
We ran a controlled test on a client's e-commerce site last year. Same server, same code, same CDN. We only changed the DNS provider:
- Before (registrar DNS): TTFB 420 ms, LCP 2.8 seconds (global average)
- After (Cloudflare Anycast DNS): TTFB 255 ms, LCP 2.5 seconds (global average)
A 165 ms improvement in TTFB and 300 ms improvement in LCP, purely from DNS. That moved several of their product pages from "Needs Improvement" to "Good" in Google's Core Web Vitals assessment.
DNS Security: A Brief But Important Note
DNS was designed in 1983 without any security mechanisms. Attackers can intercept and modify DNS responses (DNS spoofing), redirect your visitors to malicious servers, or flood your nameservers with queries (DNS amplification attacks).
DNSSEC (DNS Security Extensions) adds cryptographic signatures to DNS records, allowing resolvers to verify that responses have not been tampered with. Most premium DNS providers support DNSSEC with a single click. If your provider offers it, enable it. The performance overhead is negligible.
DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt DNS queries between the client and the recursive resolver, preventing ISPs and network observers from seeing which domains a user is visiting. This is a client-side setting (most modern browsers support it), but as a site owner, ensuring your DNS infrastructure supports these protocols signals technical maturity.
Actionable Checklist
If you walk away with one thing from this article, make it this five-step checklist:
-
Check your current DNS provider. Log into your registrar and see which nameservers your domain uses. If they are your registrar's defaults (e.g.,
ns1.registrar.com), you are likely leaving speed on the table. -
Test your DNS lookup speed. Use
dig yourcompany.comfrom a terminal, or use an online tool like dnsperf.com to see how your provider ranks globally. -
Set your TTL to 3,600 seconds for stable records. Check your current TTL values - if they are at 86,400 (24 hours), you are making migrations unnecessarily painful.
-
Consider Cloudflare DNS as a free upgrade. Migration takes 15-30 minutes: create a Cloudflare account, add your domain, copy your existing records, update nameservers at your registrar.
-
Enable DNSSEC if your provider supports it. One checkbox, permanent security improvement.
DNS is invisible infrastructure. Your visitors never see it, your analytics do not report on it directly, and it rarely appears on website audit checklists. But it is the foundation that every single page load is built on. Getting it right costs almost nothing and delivers measurable, permanent speed improvements. We have done this optimization for hundreds of client domains, and it remains one of the highest-return, lowest-effort changes you can make.