Clear Cache Clear Cache
Add to Chrome — Free

Clear Cache Blog

DNS Cache vs Browser Cache: What's the Difference?

Updated March 2026 · 7 min read

Quick Answer DNS cache stores domain-to-IP mappings (where to find a website's server). Browser cache stores the actual website content (HTML, images, CSS). They cause different problems: stale DNS = "site can't be reached" or wrong server. Stale browser cache = old content or broken styling. Clearing one doesn't clear the other.
📋 Table of Contents
📋 Table of Contents

When a website has problems, "clear your cache" is the standard advice. But which cache? Many people don't realize there are multiple distinct caches that affect web browsing — and clearing the wrong one won't fix the problem. DNS cache and browser cache are fundamentally different systems that fail in different ways. Here's exactly what each one does and when to clear it.

Clear Browser Cache for Any Site Instantly

The Clear Cache extension handles browser cache — one click to clear stored content for any site. No navigation through Chrome settings needed.

Add to Chrome — Free


DNS Cache: The Phone Book

Every time you type a domain name like google.com into your browser, something has to look up the IP address (142.250.80.46) where that website actually lives. This lookup happens via the Domain Name System (DNS) — essentially a distributed phone book for the internet.

DNS lookups add latency (typically 20–100ms) to every new connection. To avoid repeating this lookup on every request, your computer caches the result. This is DNS cache.

Where DNS Cache Lives

DNS Cache Time-to-Live (TTL)

Each DNS record has a Time-to-Live (TTL) value set by the domain owner — typically 300 seconds (5 minutes) to 86400 seconds (24 hours). Your DNS cache respects this TTL and refreshes automatically. The problem arises when a site changes its IP address and your cached TTL hasn't expired yet — you keep going to the old server.



Browser Cache: The Content Store

Browser cache stores the actual files that make up websites: HTML pages, CSS stylesheets, JavaScript files, images, fonts, and other static resources. The purpose is to avoid re-downloading unchanged files on every visit — a website's logo, for example, doesn't change daily and shouldn't be downloaded fresh every time you visit.

What Browser Cache Stores

Browser Cache Does NOT Store



Side-by-Side Comparison

PropertyDNS CacheBrowser Cache
What it storesDomain → IP address mappingsWebsite files (HTML, CSS, images, JS)
Where it livesOS level, Chrome internal, routerYour local disk (Chrome profile folder)
PurposeFaster domain resolutionFaster page loading
Problems when staleCan't reach site, wrong server, SSL errorsOutdated content, broken CSS/JS
Controlled byDomain TTL settingsHTTP cache headers (Cache-Control)
Clear via Chromechrome://net-internals/#dnsSettings → Clear browsing data
Clear via OSipconfig /flushdns (Windows)Not applicable (Chrome-managed)
Affects all sites?YesYes (unless site-specific clear)
Affects login?NoNo (cookies handle login)


When to Clear DNS Cache

Signs You Have a DNS Cache Problem

How to Clear Chrome's Internal DNS Cache

Navigate to chrome://net-internals/#dns Type this directly into Chrome's address bar (not a search engine). Click the Clear host cache button. No restart needed.

How to Clear the OS-Level DNS Cache

Windows Open Command Prompt (search "cmd" → Run as administrator):
ipconfig /flushdns
You'll see "Successfully flushed the DNS Resolver Cache."
macOS (Monterey and later) Open Terminal:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Enter your admin password when prompted. No confirmation message appears — this is normal.
Linux (Ubuntu/Debian with systemd-resolved) Open Terminal:
sudo systemd-resolve --flush-caches
Or for older systems using nscd: sudo service nscd restart


When to Clear Browser Cache

Signs You Have a Browser Cache Problem

How to Clear Browser Cache in Chrome

Full cache clear: Ctrl+Shift+Delete Opens the Clear Browsing Data dialog. Check "Cached images and files," set time range to "All time," click "Clear data."
Site-specific cache clear: Use the Clear Cache extension Navigate to the problematic site, click the Clear Cache extension icon. Only that site's cached files are removed — your other sites' cache remains intact.
Bypass cache once: Ctrl+Shift+R (hard refresh) Reloads the current page ignoring cache for this one request. Doesn't delete cached files, but shows you what the fresh version looks like.

Clear Site Cache Without Touching DNS

The Clear Cache extension precisely clears browser cache for a single site — the content layer — without affecting DNS resolution, cookies, or other sites.

Install Clear Cache — Free


Chrome Also Has a DNS-over-HTTPS Cache

Chrome has added its own DNS-over-HTTPS (DoH) functionality, which creates another DNS cache layer at the browser level — separate from both Chrome's traditional DNS cache and the OS DNS cache. If you use Chrome's secure DNS feature, this cache is also managed through chrome://net-internals/#dns.

For most users, the distinction doesn't matter — clearing Chrome's DNS cache via chrome://net-internals/#dns handles both traditional and DoH cached entries.



The Complete Clearing Workflow

If a site isn't working and you're not sure which cache is the problem, clear both in sequence:

  1. Clear Chrome's DNS cache: chrome://net-internals/#dns → Clear host cache
  2. Clear OS DNS cache: ipconfig /flushdns (Windows) or the macOS equivalent
  3. Clear browser cache: Use Clear Cache extension or Ctrl+Shift+Delete
  4. Hard refresh: Ctrl+Shift+R
  5. Test the site in an Incognito window (rules out extensions interfering)
Start with the most likely cause: If the site "can't be reached" or shows a connection error, start with DNS. If the site loads but shows wrong/old content, start with browser cache. This saves time by targeting the right system first.


Frequently Asked Questions

What's the difference between DNS cache and browser cache?

DNS cache stores domain-to-IP mappings — it remembers that "google.com" points to a specific IP so lookups are fast. Browser cache stores actual website content: HTML, CSS, images, JavaScript. DNS cache affects whether your computer can find a website's server. Browser cache affects what content is shown once the server is found.

How do I clear DNS cache in Chrome?

Go to chrome://net-internals/#dns in Chrome's address bar and click "Clear host cache." For the OS-level DNS cache on Windows: open Command Prompt and run ipconfig /flushdns. On Mac: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal.

When should I clear DNS cache vs browser cache?

Clear DNS cache when you're getting "site can't be reached" errors or when a site recently moved to a new server. Clear browser cache when the site loads but shows outdated content, broken CSS, or wrong images. When in doubt about which is causing the problem, clear both.

Can stale DNS cause browser errors?

Yes. Stale DNS can cause "ERR_NAME_NOT_RESOLVED," "This site can't be reached," or SSL certificate errors if the old IP address's certificate doesn't match the domain. After a site migrates to a new server, flushing your DNS cache immediately applies the new IP address rather than waiting for TTL expiration.

Does clearing browser cache also clear DNS cache?

No. Chrome's Clear Browsing Data (Ctrl+Shift+Delete) clears browser cache files but does not flush the DNS cache. DNS cache must be cleared separately through chrome://net-internals/#dns or the OS-level ipconfig /flushdns command.

More Free Chrome Tools by Peak Productivity

Bulk Image Downloader
Bulk Image Downloader
Download all images from any page
YouTube Looper Pro
YouTube Looper Pro
Loop any section of a YouTube video
Citation Generator
Citation Generator
Generate APA/MLA/Chicago citations
PDF Merge & Split
PDF Merge & Split
Merge and split PDFs locally
WebP to JPG/PNG
WebP to JPG/PNG
Convert WebP images to JPG/PNG
Screen Recorder Pro
Screen Recorder Pro
Record your screen or tab with audio