User Agents

Web browsers and everyday web tech, explained

How to Clear DNS Cache in Windows 11 (Fix Network Issues)

· 4 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 DNS cache in Windows 11 can resolve many network problems, like websites not loading, slow browsing, or "DNS server not responding" errors. The DNS cache stores IP addresses for domains you've visited, and when it becomes corrupted or outdated, your computer may have trouble reaching certain sites. This guide shows you several ways to flush the DNS cache, plus tips to fix related network issues. No prior technical knowledge is needed—just follow the steps below.

What You'll Need

  • A Windows 11 PC with administrator access (you'll need to open Command Prompt or PowerShell as admin).
  • An internet connection (optional, but helpful for testing after clearing).

Step-by-Step

  1. Open Command Prompt as Administrator
    Click the Start button, type cmd in the search bar. Right-click on "Command Prompt" and select "Run as administrator." If prompted by User Account Control, click "Yes."
  2. Flush the DNS Cache
    In the Command Prompt window, type the following command and press Enter:
    ipconfig /flushdns
    You should see a confirmation message: "Successfully flushed the DNS Resolver Cache."
  3. Reset the Winsock Catalog (optional but recommended)
    If you're still having network issues, type this command and press Enter:
    netsh winsock reset
    This resets the Windows network socket settings, which can fix deeper network problems.
  4. Reset TCP/IP Stack (optional)
    Type the following command and press Enter:
    netsh int ip reset
    This resets the Internet Protocol settings to default.
  5. Restart Your Computer
    After running the commands, restart your PC to ensure all changes take effect.
  6. Test Your Network
    Open a web browser and try visiting a few websites. If they load correctly, the issue is resolved.

Common Mistakes

  • Not running as administrator—If you don't open Command Prompt as admin, you'll get "Access Denied" or the command won't work.
  • Typing the command incorrectly—Make sure you type ipconfig /flushdns exactly, with a space before the slash. Misspelling or using a backslash instead of a forward slash will fail.
  • Forgetting to restart—Some network settings require a reboot to take effect.
  • Only flushing once—If the problem persists, you may need to flush again after restarting, or try the additional commands.

Tips

  • Use PowerShell as an alternative—You can also open Windows PowerShell (Admin) and run the same commands.
  • Clear browser cache too—Sometimes the browser's own DNS cache or website data causes issues. In Edge or Chrome, go to Settings > Privacy > Clear browsing data and select "Cached images and files."
  • Change your DNS server—If flushing doesn't help, consider switching to a public DNS like Google (8.8.8.8) or Cloudflare (1.1.1.1). Go to Settings > Network & Internet > Wi-Fi (or Ethernet) > your connection > DNS server assignment > Edit, and set it to manual.
  • Disable and re-enable your network adapter—This can refresh the network connection. Go to Settings > Network & Internet > Advanced network settings > More network adapter options, right-click your adapter, and select Disable, then Enable.

Troubleshooting

If the flush command doesn't return the success message, or network problems persist, try these steps:

  • Check for typos—Re-type the command carefully. Ensure there's a space between ipconfig and /flushdns.
  • Run Windows Network Troubleshooter—Go to Settings > System > Troubleshoot > Other troubleshooters, and click "Run" next to "Network Adapter" or "Internet Connections." Follow the prompts.
  • Restart your modem/router—Unplug the power from your router and modem, wait 30 seconds, and plug them back in. Wait for the lights to stabilize, then test again.
  • Check if the issue is with a specific website—If only one site fails, try accessing it from another device (like your phone). If it works there, the problem is likely your PC's DNS or browser cache.
  • Update network drivers—Outdated drivers can cause network instability. Go to Device Manager, expand "Network adapters," right-click your adapter, and select "Update driver." Choose "Search automatically for drivers."
  • Use Command Prompt to release and renew IP—Type ipconfig /release then ipconfig /renew (each followed by Enter). This gets a fresh IP address from your router.

Frequently Asked Questions

Will clearing the DNS cache slow down my browsing?

No, it might cause a slight delay on the first visit to each site as your PC re-resolves the IP address, but after that, it's back to normal. It's a quick and harmless process.

Do I need to restart after flushing DNS?

Not strictly necessary, but restarting ensures all network settings are fully refreshed, especially if you also ran the Winsock or TCP/IP reset commands.

Can I clear DNS cache without admin rights?

No, the ipconfig /flushdns command requires administrator privileges. If you're on a work or school computer, you may need to contact your IT admin.

How often should I clear the DNS cache?

Only when you encounter network issues like websites not loading or DNS errors. There's no need to do it regularly; Windows manages the cache automatically.

What if the flush command says "Unable to flush the DNS Resolver Cache"?

This usually means the DNS Client service is not running. Press Win+R, type services.msc, find "DNS Client," right-click and select Start. Then try the flush command again.

Will this fix all network problems?

No, clearing the DNS cache only fixes issues related to DNS resolution. If your problem is due to hardware, ISP outages, or firewall settings, you'll need other troubleshooting steps.