Have you ever tried opening a website only to find that it will not load? Your internet connection may be working, but your browser keeps showing an error. One possible cause is outdated information stored in your computer’s DNS cache.
Learning how to flush DNS can help fix some website loading and connection problems. The process takes only a few minutes. You can do it on a Windows PC, Mac, or directly in Google Chrome.
What Is DNS Cache and Why Should You Flush It?
DNS stands for Domain Name System. It works like a phone book for the internet. It helps your computer find the correct IP address for a website.
For example, when you type google.com into your browser, DNS helps your device find the server hosting that website.
Your computer temporarily saves some of this information in a DNS cache. This helps websites load faster because your device does not need to look up the same address every time.
However, the saved information can sometimes become outdated. This may happen when a website moves to a new server or changes its IP address.
You may then experience errors such as:
- A website refusing to load.
- A browser showing a DNS lookup error.
- A website opening on your phone but not your computer.
- A website continuing to show an old server after a change.
Knowing how to flush DNS helps your device remove these saved records and request fresh information.
How to Flush DNS on Windows 10 and Windows 11
Windows provides a simple command for clearing its DNS cache. You do not need to install extra software.
Follow these steps:
- Click the Windows Start button.
- Type Command Prompt in the search box.
- Right-click Command Prompt.
- Select Run as administrator.
- Click Yes if Windows asks for permission.
- Type the following command:
ipconfig /flushdns
- Press Enter.
Windows should display a message confirming that it successfully flushed the DNS resolver cache.
You can now close Command Prompt and reopen your browser.
For example, if your business website was recently moved to a new hosting server, clearing the DNS cache may help your computer request the updated address.
Microsoft also recommends this command as one step when troubleshooting certain internet connection problems.
How to Flush DNS on a Mac
Mac computers also store DNS information. You can clear it using the Terminal application.
Follow these steps:
- Press Command + Spacebar to open Spotlight Search.
- Type Terminal.
- Press Enter to open the application.
- Copy and paste this command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- Press Enter.
- Enter your Mac administrator password if requested.
- Press Enter again.
Your password will not appear on the screen as you type. This is normal.
The command clears the local DNS cache and signals macOS’s DNS responder to refresh its state. You may not see a success message. Returning to the Terminal prompt without an error is normal.
This command is commonly used on modern macOS versions. Older Mac operating systems may require different commands.
After completing the process, reopen your browser and try accessing the website again.
How to Flush DNS Cache in Google Chrome
Google Chrome keeps its own host information. This means clearing your Windows or Mac DNS cache may not always clear the information Chrome is using.
You can clear Chrome’s host cache directly.
Follow these steps:
- Open Google Chrome.
- Type this address into the address bar:
chrome://net-internals/#dns
- Press Enter.
- Find the Clear host cache button.
- Click it.
- Close and reopen the affected website.
This clears Chrome’s saved host information. It does not delete your browsing history, bookmarks, or saved passwords.
If the website still fails, you can try clearing Chrome’s socket pools. Open a new tab and enter:
chrome://net-internals/#sockets
Select Flush socket pools if the option is available. This closes certain saved network connections, so finish important downloads or online sessions first.
The Chrome menu names and available controls may change between browser versions.
What If Flushing DNS Does Not Fix the Problem?
Flushing DNS does not solve every internet problem. Sometimes the issue comes from your router, internet provider, VPN, or the website itself.
Try these additional steps:
- Restart your computer and router.
- Open the website in another browser.
- Check whether the same website works on your phone.
- Temporarily disconnect from your VPN to test the connection, if your network policy allows it.
- Check whether your internet provider is experiencing a service problem.
If several devices on the same Wi-Fi network cannot open websites, the problem may involve your router or internet connection rather than one computer.
Our guide on how to set up a Wi-Fi extender explains another part of home network troubleshooting.
You can also learn how VPNs affect your online connection in our guide to how VPNs work and online privacy.
For more information about common online threats and network risks, read our guide to cybersecurity trends in 2026.
The Bottom Line
Learning how to flush DNS can help you solve certain website loading and connection problems. Windows users can run ipconfig /flushdns, Mac users can use Terminal, and Chrome users can clear their host cache.
If the problem continues, check your router, internet connection, VPN, and DNS settings. The real cause may be somewhere beyond your computer’s local cache.
Frequently Asked Questions
1. Is it safe to flush DNS?
Yes. Flushing DNS is a normal troubleshooting step. It removes locally saved DNS records but does not delete personal files or browsing history.
2. How often should I flush DNS?
You do not need to flush DNS regularly. Do it when you experience possible DNS-related problems or when troubleshooting a website that has recently changed its server address.
3. Does flushing DNS make the internet faster?
Not usually. It can fix problems caused by outdated DNS information, but it does not increase your internet speed or bandwidth.
4. Does flushing DNS delete my browsing history?
No. DNS cache and browser history are different. Flushing DNS does not remove your saved passwords, bookmarks, cookies, or browsing history.
Leave a comment