Flush DNS Commands: Every OS, One Complete Reference

The single page to bookmark — every DNS flush command across every major platform and browser, in one place.

📅 Published August 2026· ⏳ 14 min read· ✍️ ToolsNovaHub Editorial Team

This is the consolidated command reference behind our platform-specific guides — every DNS flush command you're likely to need across Windows, macOS, Linux, and the major browsers, gathered in one place with what each one actually does.

⭐ ToolsNovaHub Pro Tip
Bookmark this page rather than memorizing every command — DNS troubleshooting is infrequent enough for most people that a reliable reference beats trying to remember platform-specific syntax you use only occasionally.
⚠️ Common Beginner Mistake
Flushing DNS as the first troubleshooting step for a website that appears completely down, when the actual cause is the site itself being offline or misconfigured. A local flush cannot fix a problem that isn't local — check whether the site is down for others first.

📝 Introduction

Every operating system and most browsers maintain their own independent DNS cache, and each one has its own specific command to clear it — there's no universal "flush DNS" command that works everywhere. This reference consolidates all of them, cross-linking to our deeper platform-specific guides for anyone who wants the fuller explanation behind each command.

🖥️ Windows

Open Command Prompt and run ipconfig /flushdns to clear the entire local DNS cache. View current cache contents beforehand with ipconfig /displaydns. See our full Windows DNS Cache guide for the DNS Client service architecture behind these commands, plus PowerShell equivalents.

🍑 macOS

Open Terminal and run sudo dscacheutil -flushcache followed by sudo killall -HUP mDNSResponder, entering your administrator password when prompted. See our full macOS DNS Cache guide for why this two-part command is necessary and how it's changed across macOS versions.

📶 Linux

The command depends on your active resolver: sudo resolvectl flush-caches for systemd-resolved, a service restart for nscd or dnsmasq if either is active instead, or potentially nothing to flush at all if your system runs no local caching resolver. See our full Linux DNS Cache guide for identifying which stack your specific distribution is running.

🌐 Chrome & Edge

Navigate to chrome://net-internals/#dns (or edge://net-internals/#dns on Edge) and use the built-in "Clear host cache" button, since both Chromium-based browsers expose this dedicated diagnostic page directly.

🍱 Firefox

Firefox doesn't expose as detailed a dedicated cache-clearing page — a full browser restart is the most reliable way to clear its internal DNS cache, since it's held in memory and not persisted across sessions.

✅ When You Actually Need to Flush

Flushing is genuinely useful after a DNS record change you've made yourself, after connecting or disconnecting a VPN, when troubleshooting a "works elsewhere but not here" symptom, or as a standard early step in broader connectivity troubleshooting. See our Prevent DNS Leaks guide for VPN-specific scenarios where a flush is a useful part of a larger checklist.

❌ When Flushing Won't Help

Flushing your local cache cannot fix a website that's genuinely down for everyone, a DNS misconfiguration on the domain owner's authoritative nameservers, or a change that hasn't yet been made at the source — in all of these cases, the problem exists upstream of your local cache entirely, and flushing changes nothing about it.

🔄 Recommended Order of Operations

1

Confirm the Issue Is Actually Local

Check whether the domain resolves correctly from another device or network first.

2

Flush the OS-Level Cache

Clears the system-wide cache affecting every application at once.

3

Flush or Restart the Browser

Addresses the separate browser-level cache layer independently.

4

Re-test

Confirm the change is now visible before considering the issue resolved.

💻 Scripting Flushes for Multiple Machines

IT teams managing several machines can script flush commands for remote or bulk execution — PowerShell's Clear-DnsClientCache on Windows, or configuration management tools like Ansible running the appropriate platform-specific command across a mixed Linux and macOS fleet — rather than requiring manual execution on each device individually.

📊 Master Command Table

PlatformCommand
Windowsipconfig /flushdns
macOSsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Linux (systemd-resolved)sudo resolvectl flush-caches
Linux (nscd)sudo service nscd restart
Chrome/Edgechrome://net-internals/#dns (or edge://)
FirefoxRestart the browser

🏢 Enterprise Use

Organizations should maintain this kind of consolidated command reference as part of their internal IT documentation, version-specific where relevant, so support staff aren't searching for the correct syntax mid-incident across a mixed fleet of operating systems and browser versions.

❌ Common Mistakes

⚠️ Flushing as a first response to a fully-down website
A local flush can't fix a problem that isn't local to your own cache.
⚠️ Only flushing the OS and forgetting the browser layer
Browsers maintain their own separate cache that needs addressing too.
⚠️ Using an outdated command copied from an old article
Especially relevant on macOS, where the correct command has changed across versions.

✅ Full Reference Checklist

  • Confirm the issue is actually local before flushing anything
  • Flush the OS-level cache using the correct platform command
  • Address the browser-level cache separately
  • Re-test to confirm before considering the issue resolved

🎓 Expert Tips

🔖
Bookmark, Don't Memorize
A reliable reference beats recalling infrequently-used platform syntax from memory.
🔄
Flush Both Layers
OS and browser caches are independent — clearing one doesn't clear the other.
🔍
Confirm It's Local First
Saves time versus flushing when the actual problem is elsewhere entirely.

💼 Daily Practical Use Cases

Support engineers keep this reference on hand for cross-platform troubleshooting during customer-facing tickets. Developers switching between operating systems for testing use it to avoid mixing up platform-specific syntax. IT teams incorporate it directly into onboarding and incident-response documentation for their organization.

📚 Glossary

TermDefinition
DNS FlushClearing a device or browser's locally cached DNS records
Local CacheA DNS cache scoped to a single device or application, not shared network-wide
Reviewed by: ToolsNovaHub Editorial Team📅 Last updated: August 2026📜 Sourced from: Platform-specific documentation for Windows, macOS, Linux, Chrome, Edge, and Firefox

ToolsNovaHub tools are built and independently maintained with a focus on accurate, no-signup network and security utilities. Spotted an error? Let us know.

📋 Related Tools & Guides Comparison

ResourceTypeLink
DNS Cache CheckerToolOpen Tool →
Browser DNS CacheGuideRead Guide →
Windows DNS CacheGuideRead Guide →
Linux DNS CacheGuideRead Guide →
macOS DNS CacheGuideRead Guide →
Check live DNS cache status — 100% free
🚀 Open DNS Cache Checker

FAQ

ipconfig /flushdns, run from Command Prompt.
sudo dscacheutil -flushcache followed by sudo killall -HUP mDNSResponder.
Depends on the active resolver — sudo resolvectl flush-caches for systemd-resolved, or a service restart otherwise.
Yes — browsers maintain their own separate cache independent of the operating system.
No — a local flush can't fix a genuinely down website or an upstream DNS misconfiguration.
Navigate to chrome://net-internals/#dns and use the "Clear host cache" button.
Restart the browser — Firefox doesn't expose as detailed a dedicated clearing page.
Yes — PowerShell's Clear-DnsClientCache or configuration management tools like Ansible can automate this.
Confirm the issue is local, flush the OS cache, then address the browser cache, then re-test.
No — each OS and browser has its own specific command; there's no single universal syntax.

🔗 More Guides