Table of Contents
This tip is about the how to clear the DNS cache on macOS and Windows. So read this free guide, How to clear the DNS cache on macOS and Windows step by step. If you have query related to same article you may contact us.
How to clear the DNS cache on macOS and Windows – Guide
Most of the time, you don’t need to worry about your Mac’s DNS caching. It works silently in the background and directs you to the right sites when you ask. However, if it gets corrupted, it can cause problems loading websites, with common 404 errors. One solution is to clear the Mac’s DNS cache. However, it can take a long time to check the phone book before finding the correct address. Speed up up In this process, your computer will save some of these entries for later access.
If clearing your browser cache did not fix the problem, clearing your DNS cache might be the next step. Here it is how to do this from the command line on Windows and macOS.
Free DNS cache on a Mac
Mac users need to run a quick terminal command to flush the DNS cache, but the command differs depending on your macOS version. First, press Command + Space to open Spotlight and search for “Terminal”. Press Enter to open it. Most modern versions of macOS – from OS X Lion to macOS Big Sur – use the following command. Type it into Terminal and press Enter:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
If you are on OS X 10.10.1, 10.10.2 or 10.10.3, you will need to run this command:
sudo discoveryutil udnsflushcaches; sudo discoveryutil mdnsflushcaches
You won’t see a success message for any of the commands, but you can check the offending site and see if it fixed the problem. Otherwise, you will have to try other troubleshooting steps.
Free DNS cache on Windows
If you’re on a Windows machine – any Windows machine, even back to XP and earlier – releasing DNS only requires a simple command. Click on the Start menu and type “cmd”. Right-click on the Command Prompt option and choose “Run as Administrator”. In the Command Prompt window that appears, type the following command:
ipconfig / flushdns
If successful, the command prompt will report “DNS resolver cache was successfully cleared”. Please visit the site again and see if this resolves the issue. Otherwise, the site may be down, you may have Wi-Fi issues, or you may have an elusive network issue on your side that needs to be tracked. If this is someone else’s computer, you can always try to solve the problem remotely.
Final note
I hope you like the guide How to clear the DNS cache on macOS and Windows. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.