How To Clear DNS Cache And Fix Network Connection Issues In Windows 11
Clearing the DNS cache in Windows 11 fixes stubborn network problems when web pages fail to load despite an active internet connection. The DNS (Domain Name System) cache works like a digital address book that saves the IP addresses of websites you visit so they load faster next time.
Old or broken web addresses build up inside the Domain Name System cache over time, which causes loading errors and connection failures on your computer. Running the ipconfig /flushdns command inside Windows Terminal or Command Prompt deletes these bad records and forces your computer to fetch fresh, working addresses from the web.
Open Command Prompt as an administrator and type ipconfig /flushdns to clear your DNS cache and fix network connection issues in Windows 11. Press Enter to run the command, which empties your computer’s stored website addresses and helps get your web browser working again.
How to Clear the DNS Cache in 🪟 Windows 11
- Click the Start button on your taskbar .
- Type cmd into the search box.
- Look for Command Prompt in the search results.

Command Prompt - Right-click Command Prompt and select Run as administrator.
- A black window will open on your screen. Type the following exact text into the window:Command Prompt
ipconfig /flushdns - Press the Enter key on your keyboard.
- You will see a message saying that the DNS Resolver Cache was successfully flushed.
- You can now close the black window. Try opening your web browser and visiting a website to see if your connection works properly now.
Running the Built-In Network Troubleshooter
Running the built-in network troubleshooter in Windows 11 helps you find and fix common internet connection problems automatically without needing any technical skills. You can open this helpful tool by going to your main system settings, choosing the troubleshoot menu, and selecting the network option.
- Click the Start button and open the Settings app (the gear icon).

Settings - Click on System on the left side of the window.
- Click on Troubleshoot on the right side.
- Click on Other troubleshooters.
- Find Network and Internet in the list.

Settings › Network & internet - Click the Run button next to it.
- Follow any instructions that appear on your screen while the computer checks your connection.
Basic Steps to Fix Wi-Fi and Internet Connection Issues
When your internet stops working on Windows 11 version 23H2, going through a few basic checks often brings the connection right back. You should try these 3 basic steps in order before you move on to advanced fixes.
Step 1Check Your Network Connection Status
Look at the bottom-right corner of your screen near the clock. Check the network icon. If you see a globe with a small cross, a triangle with an exclamation mark, or a red X, your computer knows it is not connected to the internet.
Step 2Check Airplane Mode
Accidental activation of Airplane mode is very easy to trigger on your Windows 11 computer. When Airplane mode is active, all wireless signals turn off completely. You can fix this network issue by opening your Quick Settings panel. To check this setting, click the network, sound, or battery icons on your taskbar, and make sure Airplane mode is turned off.
Step 3Forget and Reconnect to the Wi-Fi Network
Forgetting and reconnecting to your Wi-Fi network in Windows 11 fixes corrupted connection settings and bad passwords by letting your computer start fresh. You can do this by opening your network settings, finding your saved home network in the list, and clicking the remove or forget button.
- Open Settings and click on Network & internet.
- Click on Wi-Fi.
- Click on Manage known networks.
- Find your home network in the list and click the Forget button next to it.
- Go back to your Wi-Fi settings, select your network, type your password in again, and connect.
Step 4Restart Your Modem and Wireless Router
Restarting your modem and wireless router fixes frozen internet connections by clearing temporary hardware glitches and refreshing your service provider signal. You can safely complete the modem and router restart process by unplugging the power cables from the back of both networking devices, waiting thirty seconds, and plugging the power cables back in.
- Unplug the power cable from the back of your modem and your router.
- Wait for at least 30 seconds.
- Plug the power cables back in.
- Wait a few minutes for the lights on the devices to turn solid green or blue, then check your computer.
Step 5Adjust Wi-Fi Channel and Frequency
Adjusting your Wi-Fi channel and frequency stops sudden internet drops caused by wireless interference from nearby networks or household devices. Modern routers let you switch between the crowded 2.4 GHz band and the faster 5 GHz band by logging into your router settings using your web browser.
Step 6Try to Connect to the Same Network on a Different Device
To figure out if the problem is your computer or your internet service, try connecting a smartphone or another computer to the same Wi-Fi network. If other devices also cannot access the internet, the issue is likely your router or your internet service provider, not your Windows 11 PC.
Step 7Run Advanced Network Commands
Running advanced network commands in the Windows 11 Command Prompt lets you completely reset your network stack and clear out broken internet adapters. You can do this by opening the command tool with administrator rights and typing specific text commands to release and renew your internet address.
- Open Command Prompt as an administrator (refer to the steps earlier in this guide). (Admin privileges required)
- Type the following command and press Enter:Command Prompt
ipconfig /release - Next, type this command and press Enter:Command Prompt
ipconfig /renew - Finally, type this command to reset your internet protocol settings and press Enter:Code
netsh int ip reset - Restart your computer.
Step 8Uninstall the Network Adapter Driver and Restart
Uninstalling your network adapter driver fixes stubborn internet failures caused by corrupted software that stops your computer from talking to Wi-Fi networks. You can safely remove this driver through the Device Manager menu, and Windows will automatically reinstall a fresh copy when you restart your computer.
- Right-click the Start button and select Device Manager. (Admin privileges required)
- Click the arrow next to Network adapters to expand the list.
- Find your wireless or ethernet network adapter in the list.
- Right-click it and choose Uninstall device.
- Check the box that attempts to remove the driver for this device, then click Uninstall.
- Restart your computer. Windows will automatically reinstall a fresh, working driver when it boots back up.
Step 9Use the Ping Test to Check Router Connection
Using a ping test checks if your computer can successfully talk to your wireless router over your local network. You can run this quick test by opening the Command Prompt normally, typing the ping command followed by your router address, and pressing enter to see if you get a reply.
- Open Command Prompt normally.
- Type
ping 192.0.2.1(or your specific router gateway address) and press Enter. - If you see replies coming back, your computer is successfully talking to your router. If you see request timed out messages, there is a physical communication block between your computer and your router.
Step 10Disable Power Saving for the Wi-Fi Adapter
Disabling power saving for your Wi-Fi adapter stops Windows from turning off your wireless hardware to save battery power, which prevents sudden internet disconnections. You can easily turn off this setting by opening the Device Manager menu, finding your wireless adapter properties, and unchecking the power management box.
- Open Device Manager from the Start menu. (Admin privileges required)
- Expand Network adapters.
- Right-click your wireless network adapter and select Properties.
- Click the Power Management tab at the top of the window.
- Uncheck the box that says Allow the computer to turn off this device to save power.
- Click OK.
Step 11Check for Windows Updates
Microsoft frequently releases updates that fix known software bugs, including network connection problems. Open Settings, click on Windows Update, and click Check for updates.
Step 12Restart Your PC
It sounds simple, but restarting your computer clears out temporary working memory and stops background tasks that might be interfering with your network connection.
Step 13Use Network Reset
- Open Settings and go to Network & internet.
- Click on Advanced network settings.
- Click on Network reset.
- Click the Reset now button and confirm your choice.
- Your computer will restart automatically. Note that you will need to type your Wi-Fi password in again after doing this.
Unique Expert Tips: Fixing Hidden DNS Leaks and Browser Interference
Network troubleshooting in Windows 11 often requires looking beyond standard settings when you face stubborn connection failures. Standard tutorials usually only show you how to clear the local DNS cache, but persistent network problems frequently stem from deeper system issues. When basic steps fail to restore your internet access, you can check two advanced system areas in Windows 11 version 23H2 or later to fix the underlying connection blockages.
Checking for Virtual Private Network (VPN) and Proxy Interference
Checking for Virtual Private Network (VPN) and proxy interference helps you fix blocked internet traffic caused by security software that left behind locked settings. You can test for this issue by opening your VPN application to make sure it is fully closed and not holding onto old network rules.
To check if your VPN is blocking your connection:
- Open your VPN application and make sure it is completely closed or signed out.
- Open Windows Settings and click on Network & internet.
- Click on VPN and make sure no active connections are running.
- Click on Proxy and make sure that manual proxy setup is turned off unless your workplace specifically requires it.
Clearing Web Browser DNS Cache Separately
Clearing your web browser DNS cache separately fixes loading errors on specific websites even after you have already reset your main Windows internet settings. Popular web browsers like Google Chrome and Microsoft Edge store their own internal website addresses that you must clear through the browser internal settings page.
To clear the internal DNS cache in Google Chrome or Microsoft Edge:
- Open your web browser.
- Type
chrome://net-internals/#dns(for Chrome) oredge://net-internals/#dns(for Edge) into the address bar and press Enter. - Look for the button that says Clear host cache and click it.
- Next, click on Sockets on the left side menu and click Flush socket pools.
- This ensures that both your operating system and your web browser are completely free of old, broken website addresses.
Summary
Fixing stubborn internet and network connection issues on Windows 11 usually starts with clearing your computer DNS cache using the Command Prompt tool. If basic commands do not work, you can use the built-in troubleshooter, restart your physical hardware, adjust your Wi-Fi settings, or reset your network entirely.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!