User Agents

Web browsers and everyday web tech, explained

How to Fix Chrome Using Wrong DNS

· 6 min read · How the Web Works

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

If Chrome is loading the wrong website, showing a "This site can't be reached" error for a site that works elsewhere, or resolving a domain to an IP address that doesn't match the real server, the browser is likely using the wrong DNS (Domain Name System) settings. This guide walks you through the most common causes and fixes, from clearing Chrome's internal DNS cache to changing your system's DNS servers. No advanced networking knowledge is needed—just follow the steps in order.

What You'll Need

  • Administrator access to your computer (to change network settings or flush system DNS).
  • Access to your router's admin page (if you want to change DNS at the router level).
  • A known-good DNS server address, like Google Public DNS (8.8.8.8 and 8.8.4.4) or Cloudflare (1.1.1.1 and 1.0.0.1).
  • Optional: a second device to test whether the issue is device-specific.

Step-by-Step

  1. Clear Chrome's internal DNS cache. Chrome has its own DNS cache that can become stale. Type chrome://net-internals/#dns in the address bar and press Enter. Click the "Clear host cache" button. Then go to chrome://net-internals/#sockets and click "Flush socket pools." Restart Chrome and test the problematic site.
  2. Flush the operating system's DNS cache. This clears the DNS cache stored by Windows, macOS, or Linux. On Windows, open Command Prompt as Administrator and run ipconfig /flushdns. On macOS, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On Linux, the command varies by distribution—commonly sudo systemd-resolve --flush-caches (for systemd) or sudo service nscd restart (if using nscd). After flushing, restart the browser.
  3. Disable Chrome's "Use secure DNS" if it's causing issues. Chrome's built-in DNS-over-HTTPS (DoH) can sometimes route queries to a different resolver than your system uses. Go to Chrome Settings → Privacy and security → Security. Scroll to "Use secure DNS" and toggle it off. Test the site again. If that fixes it, you can re-enable it later and choose a specific provider instead of "With your current service provider."
  4. Check your system's DNS settings. If the problem persists, your computer may be configured to use a DNS server that returns incorrect results. On Windows, go to Control Panel → Network and Sharing Center → Change adapter settings. Right-click your active connection (Wi-Fi or Ethernet) → Properties → select "Internet Protocol Version 4 (TCP/IPv4)" → Properties. Choose "Use the following DNS server addresses" and enter 8.8.8.8 and 8.8.4.4 (or 1.1.1.1 and 1.0.0.1). On macOS, go to System Preferences → Network → select your connection → Advanced → DNS tab. Remove any existing DNS servers and add the same addresses. Click OK/Apply.
  5. Change DNS on your router. If multiple devices on your network have the same issue, the router's DNS is likely the culprit. Access your router's admin page (usually at 192.168.1.1 or 192.168.0.1—check the label on the router). Find the DNS settings under WAN or Internet settings. Replace the current DNS servers with a public one like 8.8.8.8 and 8.8.4.4. Save the settings and reboot the router.
  6. Reset Chrome's network settings. Go to Chrome Settings → Advanced → System. Click "Open proxy settings" (Windows) or "Proxy settings" (macOS). In the dialog that opens, ensure "Automatically detect settings" is checked (Windows) and that no manual proxy is set. On macOS, ensure "Web Proxy (HTTP)" and "Secure Web Proxy" are off unless you actually use a proxy. Then restart Chrome.
  7. Check for malware or extensions that hijack DNS. Some browser extensions or malware can override DNS settings. Go to chrome://extensions and disable any extensions you don't recognize or that you installed recently. Also run a malware scan with Windows Defender or your antivirus. After disabling extensions, test the site.
  8. Use Chrome's built-in "Reset and clean up" tool. In Chrome Settings, go to Advanced → Reset and clean up → Restore settings to their original defaults. This resets Chrome's startup page, new tab page, search engine, and pinned tabs, and disables all extensions. It does not remove bookmarks or history. After resetting, test the site.

Common Mistakes

  • Only clearing Chrome's cache but not the system cache—you need to do both.
  • Entering DNS server addresses incorrectly (e.g., using commas instead of periods). Double-check the format.
  • Forgetting to restart the browser or the computer after changing DNS settings.
  • Assuming the problem is DNS when it could be a hosts file entry. Check the hosts file (on Windows: C:\Windows\System32\drivers\etc\hosts; on macOS/Linux: /etc/hosts) for any lines that map a domain to an IP address. If you see an entry for the problematic site, comment it out with a # at the beginning.
  • Changing DNS on the router but not saving the settings before rebooting.

Tips

  • Use a reliable public DNS provider like Google (8.8.8.8) or Cloudflare (1.1.1.1) for better accuracy and speed.
  • If you're using a VPN, disconnect it temporarily. VPNs often change DNS settings and can cause conflicts.
  • Test with a different browser (like Firefox) or a different device. If the issue only occurs in Chrome, it's a Chrome-specific problem; if it occurs everywhere, it's a system or network issue.
  • Keep Chrome updated. Go to chrome://settings/help to check for updates.
  • If you need to keep Chrome's secure DNS on, choose a specific provider (like Cloudflare) instead of "With your current service provider"—this can sometimes bypass a misconfigured system DNS.

Troubleshooting

If the steps above don't resolve the issue, try the following:

  • Check if the problem is site-specific. Try visiting a different website. If only one site fails, the site's DNS records may be misconfigured. Use an online tool like dnschecker.org to see if the site's DNS resolves correctly globally.
  • Use Chrome's incognito mode. If the site works in incognito, the issue is likely caused by an extension or cached data. Disable extensions one by one to find the culprit.
  • Check your firewall or security software. Some security suites have DNS filtering features that can interfere. Temporarily disable them to test.
  • Restart your modem and router. Power cycle both devices by unplugging them for 30 seconds and plugging them back in. This can clear router DNS cache.
  • Manually set a different DNS on the device. If you already changed DNS, try a different provider (e.g., switch from Google to Cloudflare).
  • If all else fails, reset your network stack. On Windows, run netsh winsock reset and netsh int ip reset in an elevated Command Prompt, then restart. On macOS, delete the network configuration files (requires advanced knowledge) or reset the network settings via System Preferences.

Frequently Asked Questions

Why is Chrome using a different DNS than my system?

Chrome has its own DNS cache and also supports DNS-over-HTTPS (secure DNS). If secure DNS is enabled, Chrome may use a different resolver than your system's configured DNS. This can cause discrepancies if the secure DNS provider has different records.

Will clearing the DNS cache delete my browsing history?

No. Clearing the DNS cache only removes the stored IP address mappings. It does not affect your browsing history, bookmarks, passwords, or other Chrome data.

Can a VPN cause Chrome to use the wrong DNS?

Yes. VPNs often route DNS queries through their own servers. If the VPN's DNS is misconfigured or the VPN is not fully disconnected, it can cause Chrome to resolve domains incorrectly. Disconnect the VPN and test.

Is it safe to use public DNS like 8.8.8.8?

Yes, public DNS servers from reputable companies like Google and Cloudflare are safe and widely used. They are generally more reliable than many ISP-provided DNS servers.

How do I know if my DNS is the problem?

Try using the ping command in a terminal (e.g., ping example.com). If it resolves to an IP that doesn't match the real site (you can check with an online tool), or if you get a "cannot resolve" error, DNS is likely the issue.

Will resetting Chrome remove my saved passwords?

No. Resetting Chrome's settings restores defaults for startup, new tab, search engine, and disables extensions, but it does not clear passwords, bookmarks, or history.