User Agents

Web browsers and everyday web tech, explained

Clear Chrome DNS Cache via Chrome Net Internals

· 5 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing the Chrome DNS cache using the internal network tools forces the browser to discard its stored records of website IP addresses and request fresh data from the DNS server. This is primarily used when a website has moved to a new server or updated its DNS records, but your browser continues to direct you to the old, outdated IP address, resulting in connection errors or outdated content. By flushing the internal cache, you ensure that Chrome is using the most current routing information available.

What You'll Need

  • A computer running the Google Chrome browser.
  • An active internet connection.
  • Administrative access to the browser (standard user permissions are typically sufficient).

Step-by-Step

  1. Launch Google Chrome: Open the Chrome browser on your desktop or laptop. Ensure you are using the latest version of the browser for the best compatibility with internal tools.
  2. Access the Net Internals Page: Click on the address bar (Omnibox) at the top of the window. Type the following exactly as written: chrome://net-internals/#dns and press the Enter key.
  3. Verify the DNS Tab: Once the page loads, you will see a menu on the left-hand side. Ensure that the DNS option is highlighted or selected. The main area of the screen should now display DNS-specific tools.
  4. Locate the Clear Host Cache Button: Look for the button labeled Clear host cache. This button is typically located near the top of the DNS section.
  5. Execute the Flush: Click the Clear host cache button. Note that the browser will not provide a confirmation pop-up or a "success" message; the action happens instantaneously in the background.
  6. Clear the Socket Pools (Recommended): To ensure a completely fresh connection, it is often necessary to clear active sockets. In the left-hand menu, click on Sockets. Once the Sockets page loads, click the Flush socket pools button. This closes any open connections that might still be using the old DNS resolution.
  7. Restart the Browser: While not always strictly required, closing all Chrome windows and restarting the application ensures that all cached network states are fully reset.
  8. Test the Website: Navigate to the website that was giving you trouble to verify that the DNS changes have taken effect.

Common Mistakes

  • Typing the URL Incorrectly: Users often forget the #dns suffix. While chrome://net-internals will take you to the general page, adding the suffix saves you the step of manually clicking the DNS tab.
  • Expecting a Confirmation Message: Many users click the "Clear host cache" button and think it didn't work because nothing happens on the screen. The button triggers a silent background process.
  • Ignoring the Socket Pools: Clearing the DNS cache tells Chrome where the site is, but if a "socket" (an active connection) is already open to the old IP, Chrome may continue using that connection. Failing to flush socket pools is the most common reason why a DNS flush seems to fail.
  • Confusing Chrome DNS with OS DNS: Clearing the cache in Chrome only affects the browser. If the issue persists, the outdated record may be stored in the Windows or macOS system cache, which requires a different set of commands (like ipconfig /flushdns).

Tips

  • Use Incognito Mode for Testing: After clearing the cache, try visiting the site in an Incognito window. This ensures that browser extensions or local cookies aren't interfering with your test.
  • Check DNS Propagation: If you just changed your DNS settings on a domain registrar, remember that it can take 24 to 48 hours for the changes to propagate globally. Clearing your local cache won't help if the upstream DNS servers haven't updated yet.
  • Bookmark the Page: If you are a web developer or site administrator who frequently updates records, bookmark chrome://net-internals/#dns for quick access.

Troubleshooting

If you have followed the steps above and the website still loads the old version or fails to connect, try these solutions:

  • Flush the OS DNS Cache: If Chrome is clear but the OS is not, the browser will just receive the same wrong IP again. On Windows, open Command Prompt as Administrator and type ipconfig /flushdns. On macOS, open Terminal and type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  • Disable DNS-over-HTTPS: Chrome sometimes uses Secure DNS (DNS-over-HTTPS), which can bypass local settings. Go to Settings > Privacy and security > Security and temporarily disable "Use secure DNS" to see if it resolves the conflict.
  • Clear Browser Cache: Sometimes the issue isn't DNS, but a cached version of the page. Press Ctrl + Shift + Delete (Windows) or Cmd + Shift + Delete (Mac) and clear "Cached images and files."
  • Restart Your Router: Some routers have their own internal DNS cache. Power cycling your router can force it to fetch fresh records from your ISP.

Frequently Asked Questions

Will clearing the DNS cache delete my passwords or history?

No. Clearing the DNS cache only removes the map of domain names to IP addresses. It does not affect your browsing history, saved passwords, cookies, or bookmarks.

How often should I clear my Chrome DNS cache?

You do not need to do this on a schedule. It should only be performed when you are experiencing connectivity issues or when you know a website's server IP has changed.

Is this the same as clearing my browsing data?

No. Clearing browsing data removes files and cookies stored on your hard drive. Clearing the DNS cache removes network routing information stored in the browser's memory.

Does this work on Chrome for Android or iOS?

The chrome://net-internals page is primarily available on the desktop versions of Chrome. Mobile users typically need to clear the entire app cache or restart the device to achieve a similar result.

Why is my site still showing the old IP after I flushed the cache?

This is usually due to DNS propagation. The change has to travel from your domain registrar to the root servers, then to your ISP's servers, and finally to your computer. If any of those intermediate servers have the old record cached, you will still see the old site.