The Ultimate Guide to Flush DNS: Fast & Easy Steps

Jordan Jun 18, 2026

Encountering website loading errors or DNS inconsistencies often points to a corrupted local cache. Flushing the DNS resolver cache is a fundamental troubleshooting step that forces your computer to discard outdated records and query authoritative nameservers for fresh data. This process resolves conflicts caused by recent domain migrations, IP changes, or expired negative caching entries, ensuring your browser connects to the correct server.

How to Fix Slow DNS Lookup and Reduce Bounce Rates Instantly
How to Fix Slow DNS Lookup and Reduce Bounce Rates Instantly

Understanding DNS Caching Mechanics

Flush the DNS Cache on Ubuntu
Flush the DNS Cache on Ubuntu

Before initiating a flush, it is essential to comprehend how DNS caching operates to appreciate the necessity of this maintenance task. Your operating system and browser maintain temporary DNS records to reduce lookup times and decrease network traffic, storing these responses in a local database for a specified TTL (Time To Live). Over time, this cache can become stale due to record changes on the host server, leading to scenarios where you are directed to an outdated server or encounter SERVFAIL errors despite the target website being operational.

Preparation and Verification

How to Flush DNS Cache and Instantly Fix Internet Issues (Step-by-Step Guide)
How to Flush DNS Cache and Instantly Fix Internet Issues (Step-by-Step Guide)

Prior to executing the flush command, verify that the issue you are experiencing is indeed DNS-related. Attempt to access the problematic domain using an alternative network, such as a mobile hotspot, to rule out server-side outages. Note that the command requires administrative privileges on your machine; ensure your user account has the necessary rights. If you are on a managed corporate network, consult with your IT department, as group policies may prevent local cache modifications.

Flushing DNS on Windows Systems

4 Ways to Flush the DNS Cache on Windows 11
4 Ways to Flush the DNS Cache on Windows 11

Microsoft Windows utilizes the ipconfig utility to manage the DNS client resolver cache. To purge the stored entries, you must open Command Prompt or PowerShell with elevated administrator rights. Once the terminal is open, executing the specific command will clear the local database and reset the resolver statistics, which is particularly useful after changing network adapters or switching VPNs.

Executing the Command on Windows

To clear the cache on Windows, follow these steps:

  1. Right-click the Start menu and select "Terminal (Admin)" or "Command Prompt (Admin)"
  2. Type ipconfig /flushdns and press Enter
  3. Observe the confirmation message indicating "Successfully flushed the DNS Resolver Cache"
How to Flush the DNS Cache on macOS
How to Flush the DNS Cache on macOS

Upon completion, the system will restart the DNS Client service, and new queries will populate the cache with current records.

Flushing DNS on macOS

The methodology for macOS varies significantly depending on the version of the operating system you are running. Apple transitioned to the `dscacheutil` and `kill` command structure in older releases, while newer iterations from Catalina onward utilize the `sudo kill` method to signal the lookup daemon to reload. The terminal provides direct access to the system's networking daemon, allowing for precise cache management.

How to flush DNS: For Repeated 404 Errors
How to flush DNS: For Repeated 404 Errors

Executing the Command on macOS

To purge the DNS cache on macOS, adhere to these instructions based on your OS version:

  • macOS Ventura, Monterey, and later: Open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; echo DNS cache flushed.
  • macOS Catalina through Big Sur: Use the command sudo killall -HUP mDNSResponder;
  • macOS Mojave and earlier: Execute sudo dscacheutil -flushcache;
How to Block All Those Annoying Ads On Your Android Smartphone – Cloudeight InfoAve
How to Block All Those Annoying Ads On Your Android Smartphone – Cloudeight InfoAve
How to Flush Your DNS Cache to Fix Annoying Network Issues
How to Flush Your DNS Cache to Fix Annoying Network Issues
a blue duster on top of a white and black background
a blue duster on top of a white and black background
How to Flush DNS on Windows 11, Mac, and Linux - 2026 Guide - SmashingApps.com
How to Flush DNS on Windows 11, Mac, and Linux - 2026 Guide - SmashingApps.com
How To Flush DNS Windows 11: A Step-by-Step Guide To Refresh Your Network
How To Flush DNS Windows 11: A Step-by-Step Guide To Refresh Your Network
How To Flush DNS Cache | Hostinger Tutorials
How To Flush DNS Cache | Hostinger Tutorials
8 Ways to Fix DNS Server Not Responding
8 Ways to Fix DNS Server Not Responding
How To Flush The DNS Cache In Windows 7
How To Flush The DNS Cache In Windows 7
How to Flush DNS on Windows and Mac - Kadva Corp
How to Flush DNS on Windows and Mac - Kadva Corp
How to Block Ads on Android Using Private DNS
How to Block Ads on Android Using Private DNS
How to Flush Your DNS Cache to Fix Annoying Network Issues
How to Flush Your DNS Cache to Fix Annoying Network Issues
How to Flush the DNS Cache on Linux - Make Tech Easier
How to Flush the DNS Cache on Linux - Make Tech Easier
How to Flush DNS in IE
How to Flush DNS in IE
Non-Geeky Guide To Flushing DNS On Different Operating Systems
Non-Geeky Guide To Flushing DNS On Different Operating Systems
Check Your DNS Records Before They Break Your Website
Check Your DNS Records Before They Break Your Website
How to View DNS Cache and Flush DNS Cache in Windows 10
How to View DNS Cache and Flush DNS Cache in Windows 10
How to Flush the DNS Cache in Windows 10 and Windows 11
How to Flush the DNS Cache in Windows 10 and Windows 11
How to View and Flush DNS Cache on Linux
How to View and Flush DNS Cache on Linux
Your Internet Feels Slow? This 5-Minute DNS Fix Could Help
Your Internet Feels Slow? This 5-Minute DNS Fix Could Help
Fix IPConfig error: Could not flush the DNS Resolver cache
Fix IPConfig error: Could not flush the DNS Resolver cache

If prompted, input your administrator password and press Enter. No characters will display as you type for security purposes.

Verifying the Flush Operation

After executing the flush command, you can verify the success of the operation by checking the resolver statistics or attempting to access the previously problematic domain. On Windows, running ipconfig /displaydns will show an empty cache window, confirming the purge. On Linux, you might need to restart the nscd or systemd-resolved service depending on your distribution to ensure the cache is fully cleared.

Advanced Troubleshooting and Considerations

If flushing the local cache does not resolve the connectivity issue, the problem may lie upstream, such as with your ISP's DNS servers or the authoritative nameservers for the domain. Utilizing public DNS services like Google (8.8.8.8) or Cloudflare (1.1.1.1) can bypass unreliable ISP resolvers. Furthermore, employing the `ping` or `nslookup` commands allows you to inspect the TTL and record mappings, providing deeper insight into the propagation status across the global DNS infrastructure.