How to Clear Your Local DNS Cache on Windows 11 When a Site Won't Load
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.
- Click the Start button on your taskbar.
- Type
cmdin the search bar. - Right-click on Command Prompt in the search results and select Run as administrator.
- 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 /flushdnscommand 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/#dnsin Chrome and clicking Clear host cache) or perform a hard refresh usingCtrl + F5. - Ignoring Local Hosts File Entries: If you previously added manual routing entries to your
C:\Windows\System32\drivers\etc\hostsfile 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
- Run
ipconfig /flushdnsin an Administrator Command Prompt. - Clear your web browser's internal cache and history.
- Test the URL in an incognito or private browsing window.
- Check external site availability using an online status tool.
- Temporarily disable third-party antivirus software or VPN extensions that may intercept web traffic.
- Restart your home router and modem to clear upstream routing tables.