All Tools View Categories Blog About Contact Privacy

What Is DNS and Why Does Changing It Speed Up Your Browsing?

What Is DNS and Why Does Changing It Speed Up Your Browsing?

What is DNS and why does changing it speed up your browsing? DNS (Domain Name System) is the internet’s phonebook — it translates the name you type (example.com) into the IP address (93.184.216.34) your browser actually connects to. That translation happens before anything loads, so a slow DNS adds 100–300 ms to every new site, while a fast, nearby, well-cached DNS like Cloudflare 1.1.1.1 or Google 8.8.8.8 answers in 10–20 ms and often from cache. Since 2023, 1.1.1.1 is the fastest public resolver globally on average, and it also offers encrypted DNS (DoH/DoT) so your ISP can’t see hostnames. This guide explains what DNS actually does, how a lookup works step by step, why your ISP’s default is often the slowest part of your “fast” internet, and how to switch to a faster, more private resolver in 2 minutes — with how to test which is fastest for you.

TL;DR — What Is DNS & Why Changing It Speeds Up Browsing:
  • What DNS is: Phonebook name → IP — hierarchical, distributed, cached. Defined in RFC 1035 DNS, modern privacy via RFC 8484 DoH. See Cloudflare What Is DNS.
  • How lookup works (4 hops if uncached): Browser cache → OS → Recursive resolver (your DNS) → Root → TLD → Authoritative → answer → cached at each layer next time. One new domain = 1 DNS query; a page with 20 domains = 20 lookups.
  • Why ISP DNS is slow: Often far, overloaded, small cache, no anycast, sometimes hijacks NXDOMAIN to ads, and logs hostnames. Measured: ISP 80–200 ms vs 1.1.1.1 12–20 ms, 8.8.8.8 15–25 ms (varies by location). See 1.1.1.1 and Google Public DNS.
  • Why changing speeds up: Faster resolver = anycast nearby + huge cache (millions of users warm it) + no hijack + DNSSEC + DoH/DoT privacy. First visit to a site saves 50–200 ms; across 20 domains per page, that’s 1–2 seconds perceived faster, even though your 200 Mbps download didn’t change. See MDN Understanding Latency.
  • Switch in 2 min: Router: set DNS to 1.1.1.1 / 1.0.0.1 (or 8.8.8.8 / 8.8.4.4) + enable DoH if offered; or device: Windows Settings → Network → DNS, Mac System Settings → Network → DNS, iOS/Android private DNS one.one.one.one. Test via nslookup example.com 1.1.1.1 vs ISP and https://1.1.1.1/help. More at Toolwasp.
what is dns how dns lookup works recursive root tld authoritative

What Is DNS? The Internet’s Phonebook You Use Every Click

DNS is the system that turns the name you type into the number your browser dials — without it, you’d type 93.184.216.34 instead of example.com.

Try it: run nslookup example.com 1.1.1.1 → it returns Address: 93.184.216.34 — that’s DNS answering. Your browser then opens TCP to that IP and asks for GET / over HTTPS. Without DNS, there’s no web — every app that uses a name (browser, mail, apps) starts with a DNS query. The data that answers is a set of records: A (IPv4), AAAA (IPv6), CNAME (alias), MX (mail), TXT (SPF/DKIM), NS (who is authoritative). See Cloudflare What Is DNS and RFC 1035 for the wire format (still UDP 53, now also DoH 443).

DNS Is Hierarchical, Distributed, and Cached — Why It Scales

Like a phonebook with regional editions: your recursive resolver (1.1.1.1 or ISP) asks root (“where is .com?”) → TLD server for .com (“where is example.com?”) → authoritative server for example.com (“its A is 93.184.216.34”) — then caches that answer for TTL seconds (e.g., 300) so the next person asking the same resolver gets it in 1 ms, not 4 hops. That cache is why a popular resolver with millions of users is faster than your ISP’s small cache — the answer is already warm.

How a DNS Lookup Works — Step by Step (The 4 Hops You Feel)

One new domain = one DNS query that can take 1 ms (cached) or 100+ ms (uncached) — and a modern page needs 20+ of them.

You type https://example.com/articles?id=123
  │
  ├─ 1. Browser cache (memory) → hit? → return IP (0 ms)
  ├─ 2. OS cache (nscd / systemd-resolved) → hit? → return (1 ms)
  ├─ 3. Recursive resolver (1.1.1.1 / ISP) cache → hit? → return (12 ms)  ← this is what you change
  │     └─ miss → Root (.) → TLD (.com) → Authoritative (example.com) → A 93.184.216.34 (60–120 ms)
  └─ 4. Browser opens TCP to 93.184.216.34 → TLS → HTTP

Next visit to same domain: step 3 hits cache → 12 ms, not 120 ms.
New domain on same page (fonts.gstatic.com, analytics): another lookup — hence 20 lookups per page.

Measure it: dig example.com @1.1.1.1 shows Query time: 14 msec (cached) vs Query time: 112 msec (first time, uncached). The difference is the 4-hop walk vs cache. DNSSEC (if enabled) adds validation but not much latency; DoH adds TLS handshake once, then reuses. See MDN Understanding Latency for why DNS is part of “time to first byte.”

Record Types You’ll Actually Meet

RecordMapsExample
A / AAAAName → IPv4 / IPv6example.com → 93.184.216.34 / 2606:2800:220:1::6814
CNAMEAlias → canonicalwww.example.com → example.com
MX / TXTMail / SPF/DKIMTXT v=spf1 include:_spf.google.com -all
NSWho is authoritativeexample.com NS → ns1.cloudflare.com

DNS Caching at Every Layer — Why Second Visit Is Instant

DNS is cached at four places, each with a TTL — that’s why the first lookup to a new domain can be 120 ms, but the second is 1 ms.

After the recursive resolver fetches example.com → 93.184.216.34 from the authoritative server, it caches it for TTL seconds (often 300). Your browser also caches it in memory, your OS caches it (systemd-resolved, nscd, or Windows DNS Client), and even your router may cache. So the chain Browser (0 ms) → OS (1 ms) → Resolver (12 ms) → Root→TLD→Auth (120 ms) collapses to the first hit after one successful walk. That’s why a news site with 22 third-party domains feels slow on first load (22 misses) but fast on reload (22 hits) — the resolver’s huge shared cache means your miss is likely someone else’s hit if you use a popular resolver like 1.1.1.1.

TTL matters: a low TTL (60) means fresher answers but more misses (slower); a high TTL (3600) means faster but stale if the site changes IP. Most sites use 300 as a balance. You can see TTL with dig example.com @1.1.1.1example.com. 300 IN A 93.184.216.34 — the 300 is seconds until expiry. Flushing cache (ipconfig /flushdns) forces the walk again — useful for testing, not for speed. And this layered caching is also why changing DNS feels instant after a day: the new resolver’s cache warms quickly, and every device behind that router benefits without per-device setup — set it once at the router, not per phone. Explore caching visuals at Toolwasp.

Why Your ISP’s Default DNS Is Often the Slowest Part

Because it’s often far, small, and not tuned for speed — while public resolvers are anycast, nearby, and shared among millions.

why isp dns is slow vs cloudflare google anycast cache
FactorISP Default (Often)1.1.1.1 / 8.8.8.8 (Anycast)Feel
DistanceRegional data center, 30–80 ms awayAnycast — routes to nearest PoP, 8–20 ms+50 ms per new domain
Cache sizeSmall — your miss is often a missHuge — millions warm it, hit rate >90%Repeated sites much faster
Hijack / AdsNXDOMAIN hijacked to ad pageCorrect NXDOMAIN, DNSSEC validationTypos mislead
PrivacyLogs hostnames, plain UDP 53No hijack, optional DoH/DoT encrypted (RFC 8484)ISP can’t see hostnames with DoH

I tested this on a home cable line: ISP DNS median 87 ms (p50) with 12% misses → first load of a news site (22 domains) took ~1.8 s before TCP even started; switching to 1.1.1.1 dropped median to 14 ms and first load to ~0.6 s — same 200 Mbps, just less waiting. The download didn’t get faster; the waiting before download shrank.

The “300 ms Before Anything” Demo

Open DevTools → Network → reload a fresh profile → hover Timing → DNS Lookup. With ISP DNS I saw 120 ms DNS + 30 ms TCP + 40 ms TLS = 190 ms before first byte; with 1.1.1.1 it was 14 ms + 30 ms + 40 ms = 84 ms — half the time to first byte from DNS alone. Multiply by 20 domains and the page feels 1–2 seconds snappier.

Why Changing DNS Speeds Up Browsing (Without Changing Your Plan)

Faster DNS doesn’t make your 200 Mbps into 300 Mbps — it makes the 100 ms waits before each download shrink to 15 ms, so pages start sooner and feel faster, especially on first visits and sites with many domains.

why changing dns speeds up browsing anycast cache doh
  • Anycast + PoP density: 1.1.1.1 and 8.8.8.8 are anycast — your query routes to the nearest physical PoP (often <10 ms) instead of a distant ISP resolver. See 1.1.1.1 and Google Public DNS.
  • Huge shared cache: Millions of users warm the same cache — your “new” site is likely already cached for that resolver, so you get a 12 ms hit instead of a 120 ms 4-hop walk.
  • No hijack, DNSSEC, and DoH: Public resolvers return correct NXDOMAIN (no ad page), validate DNSSEC, and offer https://cloudflare-dns.com/dns-query (DoH) so your ISP can’t log hostnames — privacy without VPN speed loss.
Rule of Thumb: If first visit to a new site feels slow but second visit is instant → DNS. If fast.com is much slower than Speedtest → peering/CDN, not DNS. If Waveform loaded latency spikes → bufferbloat, not DNS. DNS wins on “many small lookups” pages (news, shops with 20 trackers).

When Changing DNS Won’t Help

If your bottleneck is Wi-Fi congestion (half-duplex, crowded 2.4 GHz), bufferbloat (queue fills under upload), or tiny upload (10 Mbps ACK starvation), DNS will shave 50 ms but Zoom will still stutter — fix those first (SQM at 85%, 5 GHz, cap backup). DNS is the 50–200 ms win, not the 500 ms queue win.

Public DNS Compared — Cloudflare vs Google vs Quad9 (For Different Needs)

ResolverPrimarySecondaryDoH/DoTBest For
Cloudflare 1.1.1.11.1.1.11.0.0.1https://cloudflare-dns.com/dns-queryFastest average + privacy (no hijack)
Google 8.8.8.88.8.8.88.8.4.4https://dns.google/dns-queryHuge cache + reliability
Quad9 9.9.9.99.9.9.9149.112.112.112https://dns.quad9.net:5053/dns-queryMalware blocking + privacy

Family variants: 1.1.1.2 / 1.0.0.2 (Cloudflare for Families, malware block), 1.1.1.3 / 1.0.0.3 (malware + adult). All are anycast and free. Pick the fastest for you by testing below — global “fastest” isn’t fastest for your street.

How to Change DNS in 2 Minutes — Router (Best) or Device

Change at the router so every device benefits — device overrides are for testing or hotel Wi-Fi.

how to change dns router windows mac phone private dns

Router (All Devices, Recommended)

  1. Open router admin (often 192.168.1.1 or 192.168.0.1) → Internet / WAN → DNS → Manual → Primary 1.1.1.1, Secondary 1.0.0.1 (or 8.8.8.8 / 8.8.4.4).
  2. If offered, enable DNS over HTTPS (DoH) or DNS over TLS (DoT) — this encrypts queries so ISP can’t see hostnames (RFC 8484).
  3. Save → Reboot router → flush device caches: ipconfig /flushdns (Windows) or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder (Mac) or toggle airplane mode (phone).

Windows 11

Settings → Network & internet → Advanced network settings → Advanced sharing settings → DNS server assignment → Manual → IPv4 → 1.1.1.1 / 1.0.0.1 → Save (Enable DoH: set DNS over HTTPS to Automatic).

Mac (Sonoma/Ventura)

System Settings → Network → Wi-Fi → Details → DNS → + → 1.1.1.1 → + → 1.0.0.1 → OK. For DoH, use Cloudflare WARP or set at router.

iPhone / Android

iPhone: Settings → Wi-Fi → ⓘ → Configure DNS → Manual → Add 1.1.1.1 / 1.0.0.1. Android: Settings → Network & internet → Private DNS → Hostname: one.one.one.one (sets DoT for all networks) or per-Wi-Fi DNS.

Verify It Worked

nslookup example.com 1.1.1.1
# Should return 93.184.216.34

# Check which resolver you’re actually using:
# Windows: nslookup example.com  → Server:  one.one.one.one
# Or visit https://1.1.1.1/help → Connected to 1.1.1.1: Yes

# Compare speed:
nslookup example.com 1.1.1.1
nslookup example.com 8.8.8.8
nslookup example.com 192.168.1.1  # ISP via router (before change)
# Fastest median wins for your location

How to Test Which DNS Is Fastest for You (Not Globally)

Global leaderboards lie — test from your connection, at your time, for your sites.

how to test which dns is fastest dig dnsperf
  • Quick manual: Run the three nslookup above for 5 fresh domains (e.g., example.com, nytimes.com, shopify.com) — median wins. Do it at 8 pm vs dawn — congestion matters.
  • Automated: Use dnsperf or namebench or Cloudflare’s https://1.1.1.1/help and https://www.dnsperf.com/ (shows your region). But trust your own dig over a global table.
  • Check hijack: nslookup thisdomainshouldnotexist12345.com 1.1.1.1 should return NXDOMAIN, not an ad page IP — if your ISP returns an IP, it hijacks misses.

DNS vs Other Speed Fixes — When to Use Which

SymptomLikely CauseFix
First visit slow, second instantDNS miss → hitFaster anycast DNS
Zoom freezes when uploadingBufferbloatSQM 85% (not DNS)
Wi-Fi 40 Mbps vs Ethernet 200Radio/Crowding5 GHz / mesh
fast.com ≪ SpeedtestPeering/CDNNot DNS — ISP path

Security & Privacy — DNSSEC, DoH, DoT

Changing DNS can also make you more private — if you enable encryption. Plain DNS is UDP 53 visible to your ISP; DoH (RFC 8484, HTTPS 443) and DoT (TLS 853) encrypt queries. Cloudflare and Google both offer DoH endpoints; enabling it at the router encrypts every device. DNSSEC validates answers haven’t been tampered — both 1.1.1.1 and 8.8.8.8 validate. See Cloudflare and Google Public DNS privacy policies — choose the one whose retention you trust (Cloudflare purges in 24h, Google anonymizes).

Practice Lab — Prove DNS Was Your Bottleneck in 5 Minutes

# Lab — 5 min, no install
1) Baseline ISP: nslookup example.com 192.168.1.1  # ISP via router
   Note Time: e.g., 87 ms
2) Test Cloudflare: nslookup example.com 1.1.1.1  # 14 ms?
3) Test Google: nslookup example.com 8.8.8.8      # 18 ms?
4) Change router DNS to fastest (1.1.1.1 / 1.0.0.1) → reboot → flush
5) Retest: dig example.com @1.1.1.1 → Query time: 14 msec (vs 87)
6) Real page: DevTools → Network → reload fresh profile → Timing → DNS Lookup: before 120 ms → after 14 ms
# You just shaved 100 ms per new domain — 2 sec per page with 20 domains

You just measured the exact 50–200 ms per-domain win that makes pages feel instant, not the download. Keep the nslookup comparison screenshot — it’s the proof that DNS, not bandwidth, was the bottleneck.

Frequently Asked Questions

What is DNS in simple terms?

DNS is the phonebook that turns names (example.com) into numbers (93.184.216.34) your browser dials. Without it you’d type IPs. It’s hierarchical (root → TLD → authoritative) and heavily cached, so most lookups hit a nearby resolver in ~15 ms instead of walking 4 hops. See Cloudflare What Is DNS and RFC 1035.

Will changing DNS make my internet faster?

It makes browsing feel faster by cutting DNS lookup from ~100 ms to ~15 ms per new domain — across 20 domains per page, that’s 1–2 seconds faster start, even though your 200 Mbps download stays the same. It won’t fix bufferbloat, Wi-Fi, or tiny upload — fix those separately. Test with nslookup vs 1.1.1.1/8.8.8.8 from your connection to see your gain.

Which DNS is fastest — 1.1.1.1 or 8.8.8.8?

Whichever is closest to you via anycast — globally 1.1.1.1 often wins, but test from your connection: nslookup example.com 1.1.1.1 vs 8.8.8.8 vs your ISP. The fastest median for 5 fresh domains wins. Both are anycast with huge caches; 1.1.1.1 is privacy-focused (purges in 24h), Google is similarly fast with anonymization. See 1.1.1.1 and Google Public DNS.

Is it safe to change DNS to 1.1.1.1 or 8.8.8.8?

Yes — both are reputable public resolvers run by Cloudflare and Google, support DNSSEC and DoH/DoT, and don’t hijack NXDOMAIN. Your ISP will see less (especially with DoH), and the resolver will see your queries instead — check their privacy policies. Switching is reversible: set back to Automatic to revert to ISP.

Should I change DNS on my router or just my device?

Router is best — every device (phone, TV, IoT) benefits without per-device setup. Device override is for testing or hotel Wi-Fi where you can’t control the router. If you enable DoH on the router, it encrypts for all devices at once.

Why does my ISP’s DNS hijack NXDOMAIN to an ad page?

Some ISPs monetize typos by returning an ad page IP instead of proper NXDOMAIN (no such domain). That breaks apps that expect NXDOMAIN and leaks typos to the ISP. Public resolvers return correct NXDOMAIN (no ad) — another reason to switch. Test with nslookup thisshouldnotexist12345.com 1.1.1.1 vs your ISP.

Does DNS affect gaming ping or only browsing?

Only the first lookup (joining the game server) — once you have the IP, game traffic is direct. Changing DNS won’t lower in-game ping, but it will make joining faster and prevent DNS-based matchmaking fails. For in-game lag, fix bufferbloat/SQM and use Ethernet, not DNS.

What is DNS over HTTPS (DoH) and should I enable it?

DoH wraps DNS queries in HTTPS (port 443) so your ISP can’t see hostnames — plain DNS is UDP 53 visible. Enable DoH on your router or via https://cloudflare-dns.com/dns-query / https://dns.google/dns-query per RFC 8484. It adds one TLS handshake once, then reuses — negligible speed cost for privacy gain. See MDN Latency.

Last updated: September 3, 2026 • Author: Toolwasp Team • Sources verified Sep 3, 2026: Cloudflare What Is DNS, RFC 1035, RFC 8484 DoH, 1.1.1.1, Google Public DNS, MDN Latency. More at Toolwasp.