Force Chrome to refresh its DNS cache on Windows by launching the browser with the --disable-dns-cache flag via the command line, or by flushing the system-wide DNS resolver using the Command Prompt. This bypasses stale records that cause connection errors and ensures your browser resolves domain names correctly against the current network state.
Understanding the Problem
Browsers maintain an internal cache of Domain Name System (DNS) lookups to speed up subsequent visits to the same websites. While this improves performance, it often leads to issues when a website's IP address changes rapidly, such as during deployments, CDN updates, or local development environments. If Chrome holds onto an outdated record, you may encounter connection refused errors, SSL certificate mismatches, or simply fail to load a site that is known to be active.
While modern versions of Chrome have largely moved away from aggressive persistent caching compared to older iterations, the operating system itself still caches DNS entries. On Windows, the DNS Client service manages these records. Therefore, troubleshooting requires addressing both the browser-specific behavior and the underlying OS-level cache to ensure a complete refresh.
Method 1: Flushing the Windows DNS Cache
The most reliable way to clear DNS records for all applications, including Chrome, is to flush the Windows DNS Client cache. This forces the operating system to discard all stored mappings and request fresh data from your configured DNS servers.
- Open Command Prompt as Administrator: Press the
Windows Key, typecmd, right-click on "Command Prompt," and select "Run as administrator." Alternatively, useWindows + Xand select "Terminal (Admin)" or "Windows PowerShell (Admin)" if preferred. - Execute the Flush Command: Type the following command and press Enter:
ipconfig /flushdns
You should see a message stating "Successfully flushed the DNS Resolver Cache." This step clears the system-wide cache, which Chrome will respect upon its next lookup attempt. If you are experiencing persistent issues, consider checking related guides on Removing DNS Client Cache Records in Windows 11 IIS for more advanced diagnostic steps.
Method 2: Launching Chrome with DNS Flags
If you need to force Chrome to ignore its own internal cache mechanisms without restarting the entire browser session, you can launch it with specific command-line flags. This is particularly useful for developers who need to test immediate DNS changes.
- Close All Chrome Instances: Ensure no Chrome windows are running. Check the system tray to make sure the process has fully terminated.
- Create a Shortcut or Use Run Dialog: You can use the Run dialog (
Windows + R) or create a new desktop shortcut pointing to your Chrome executable. - Add the Disable Flag: Append the following argument to the end of the path:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-dns-cache
This flag instructs Chrome not to store DNS results in its memory, forcing a fresh query for every single navigation. Note that this may slightly increase latency for frequently visited sites due to the overhead of repeated lookups.
Method 3: Clearing Browser Data
Sometimes the issue is not strictly DNS but cached host files or other browsing data that mimics DNS resolution failures. Clearing specific site data can resolve these edge cases.
- Navigate to
Settings>Privacy and security>Delete browsing data. - Select
Advancedand choose a time range of "All time." - Check the box for
Cached images and filesand optionallyCookies and other site data. - Click
Delete dataand restart Chrome.
For users relying on proxy extensions to manage connections, ensure that proxy settings are also cleared, as connection drops can sometimes be misdiagnosed as DNS issues. See our guide on Fixing FoxyProxy Connection Drops if you suspect proxy configuration interference.
Verifying the Fix
To confirm that DNS resolution is working correctly, navigate to a site that recently changed IPs. You can also use the built-in Chrome diagnostics by visiting chrome://net-internals/#dns. Click the "Flush host cache" button within this page to clear any residual browser-specific entries that the OS flush might not have caught.
Frequently Asked Questions
Does flushing DNS affect internet speed?
No, flushing DNS does not permanently slow down your internet. It only removes temporary storage, meaning the very first visit to a site after flushing may take milliseconds longer while the new record is fetched. Subsequent visits will be cached again normally.
Why does Chrome still show old content after flushing?
If the DNS is correct but the content is stale, the issue is likely HTTP caching rather than DNS. You must clear your browser's cache or perform a hard refresh (Ctrl + F5) to force the browser to re-download resources from the server.
Can I disable DNS caching permanently in Chrome?
While you can use the --disable-dns-cache flag, it is not recommended for daily use as it increases network traffic and latency. It is best reserved for debugging sessions or development environments where IP addresses change frequently.
What if my ISP's DNS is caching incorrectly?
If the system flush does not help, your ISP's recursive DNS server may be holding onto a bad record. Switching to a public DNS provider like Google DNS (8.8.8.8) or Cloudflare (1.1.1.1) in your network adapter settings can often resolve persistent resolution errors.
How do I check if Chrome is using a proxy?
Go to chrome://settings/system and click "Open your computer's proxy settings." If a proxy is enabled, Chrome routes DNS queries through it, which can complicate resolution. Disabling the proxy temporarily can help isolate whether the proxy service is causing the drop.