XiaTools

How to Clear Your Local DNS Cache on Windows 11 When a Site Won't Load

By Rohit, founder of XiaTools · Updated 15 Oct 2026

When a website refuses to load on your Windows 11 PC, a corrupted or outdated local resolver cache is frequently the culprit. You can quickly fix this issue by opening Command Prompt as an administrator and running the ipconfig /flushdns command to clear your stored domain records. If you are unsure whether the problem is on your end or the website's server, you can use the Website Down Checker to instantly test global availability and diagnose if the site is down for everyone or just you.

Understanding How Windows 11 Resolves Domain Names

Every time you type a URL into your browser, your computer needs to translate that human-readable address into a machine-readable IP address. Windows 11 maintains a local repository known as the DNS resolver cache to speed up this process. This cache stores recent lookups for domain names and their corresponding IP addresses, such as mapping example.com to 192.0.2.1 or an IPv6 address like 2001:db8::1.

Over time, entries in this cache can become stale or corrupted. This happens when a web host updates its server IP address, migrates to a new content delivery network, or when network packets become malformed. When your local cache holds onto an invalid IP address, your browser attempts to reach a server that no longer hosts the site, resulting in connection timeouts or DNS probe errors.

Step-by-Step Guide to Flush DNS on Windows 11

Clearing your DNS cache forces your operating system to query your configured recursive nameservers fresh the next time you try to access a domain. Follow these steps to clear your cache using the native Windows terminal.

Open Command Prompt as Administrator

To execute network configuration commands, you need elevated privileges.

  1. Click the Start button on your taskbar.
  2. Type cmd in the search bar.
  3. Right-click on Command Prompt in the search results and select Run as administrator.
  4. If the User Account Control (UAC) prompt appears asking if you want to allow this app to make changes to your device, click Yes.

Execute the Flush Command

Once the Administrator Command Prompt window is open, type the following command and press Enter:

ipconfig /flushdns

Upon successful execution, you will see a confirmation message:

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

This command immediately purges all cached domain records from your system memory. You can now close the command prompt and attempt to reload your website.

Additional Network Reset Commands

Sometimes flushing the DNS cache alone is not enough, especially if your local network adapter configuration has also become corrupted. You can run a deeper reset by executing the following commands in sequence within an Administrator Command Prompt:

ipconfig /release
ipconfig /renew
netsh winsock reset

The ipconfig /release command releases your current IP address lease from your router or DHCP server. The ipconfig /renew command requests a fresh IP address. Finally, netsh winsock reset resets the Windows Sockets API catalog, which repairs corrupted network socket configurations that can block web traffic.

Troubleshooting: Is It Your DNS or the Website?

Before spending hours troubleshooting your Windows 11 network settings, you should verify whether the target website is actually online. Sometimes the issue has nothing to do with your DNS cache.

Using Diagnostic Command Line Tools

You can query DNS records directly from your terminal to see what IP address your system is currently resolving. Open a standard command prompt and use nslookup or dig (if available through Windows Subsystem for Linux or third-party utilities):

nslookup example.com

Sample output:

Server:  dns.example.com
Address:  192.0.2.33

Non-authoritative answer:
Name:    example.com
Address:  192.0.2.1

If the returned IP address matches the expected server and the site still fails to load, the issue might be related to browser caching, firewall rules, or an upstream server outage.

Diagnostic Tools Comparison

Tool Primary Purpose Where to Run Best Used For
ipconfig /flushdns Clear local OS DNS cache Windows Command Prompt Fixing stale domain-to-IP mappings
nslookup Query DNS servers directly Any command line interface Verifying record resolution and nameservers
Website Down Checker Test global HTTP/HTTPS availability Web browser / Online tool Confirming if a site is down for everyone

Common Mistakes and How to Fix Them

Even experienced users occasionally run into roadblocks when trying to clear network caches. Here are the most common pitfalls and how to avoid them:

  • Running Command Prompt as a Standard User: If you forget to launch the command prompt with administrator rights, the ipconfig /flushdns command may fail or fail to clear system-wide states. Always verify the window title says "Administrator: Command Prompt."
  • Forgetting Browser Caching: Browsers like Google Chrome, Mozilla Firefox, and Microsoft Edge maintain their own internal DNS caches independent of Windows. If you cleared your OS cache and the site still fails, you must also clear your browser's DNS cache (e.g., by navigating to chrome://net-internals/#dns in Chrome and clicking Clear host cache) or perform a hard refresh using Ctrl + F5.
  • Ignoring Local Hosts File Entries: If you previously added manual routing entries to your C:\Windows\System32\drivers\etc\hosts file for testing purposes, flushing the DNS cache will not affect those entries. Open the file in a text editor as an administrator and check for conflicting IP mappings.

Quick Checklist for Website Loading Failures on Windows 11

  1. Run ipconfig /flushdns in an Administrator Command Prompt.
  2. Clear your web browser's internal cache and history.
  3. Test the URL in an incognito or private browsing window.
  4. Check external site availability using an online status tool.
  5. Temporarily disable third-party antivirus software or VPN extensions that may intercept web traffic.
  6. Restart your home router and modem to clear upstream routing tables.

Frequently asked questions

How often should I flush my DNS cache on Windows 11?

You do not need to flush your DNS cache on a regular schedule. You only need to run the command when you experience connectivity issues, cannot access specific websites, or after a domain host migrates to a new IP address and your browser fails to connect.

Does flushing DNS delete my saved passwords or browsing history?

No. The DNS cache only contains temporary records of domain names and their corresponding IP addresses. Flushing it has zero impact on your browser history, saved passwords, cookies, or personal files.

Why does a website still fail to load even after I flush my DNS?

If clearing the DNS cache does not work, the website's server may be experiencing an outage, your browser may be caching the old page data, or your internet service provider (ISP) might be experiencing routing issues. You can test your browser cache with a hard refresh or check global availability online.

Can I flush the DNS cache in Windows 11 using PowerShell?

Yes. You can open PowerShell as an administrator and run either the traditional `ipconfig /flushdns` command or the native PowerShell cmdlet `Clear-DnsClientCache`. Both commands achieve the exact same result.

Do I need to restart my computer after flushing the DNS cache?

No restart is required. The `ipconfig /flushdns` command takes effect immediately, clearing the resolver cache in real-time so your next web request queries your configured DNS server directly.

Related articles

Free tools