Tips to clear the DNS cache on macOS and Windows

Tips to clear the DNS cache on macOS and Windows

Hello Geeky, so today we are focusing on How to clear the DNS cache on macOS and Windows. So please read this tutorial carefully so you may comprehend it in a better helpful way.

Guide: How to clear the DNS cache on macOS and Windows

In most cases, you do not have to worry about your Mac DNS cache. It works quietly in the background and directs you to the right websites when requested. However, if it is corrupted it can cause problems loading websites, with 404 common errors. One solution is to clear your Mac’s DNS cache. However, it may take a long time to scan phone book before you can find the correct address. To hurry up this process, your computer will save some of these entries for later access.

If deleting your browser cache does not solve the problem, deleting your DNS cache may be the next step. Here it is how to do this from the command line on Windows and macOS.

Clear the DNS cache on a Mac

Mac users need to run the Terminal command prompt to break the DNS cache, but the command varies depending on your macOS version. First, press Command + Space to open Spotlight and search for “Terminal.” Press Press to open. Most modern versions of macOS — from OS X Lion via macOS Big Sur — use the following command. Enter into the 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 instead:

sudo discoveryutil udnsflushcaches; sudo discoveryutil mdnsflushcaches

You will not see a success message for either command, but you can check the problem website and see if it fixes the problem. If not, you will have to try other troubleshooting steps.

Clear the DNS cache on Windows

If you are on a Windows machine – any Windows machine, even back to XP and an older DNS server get a simple command. Click the Start menu and type cmd. Right-click on the Command Prompt option and select “Run as Administrator.” In the Command Prompt window that appears, type the following command:

ipconfig / flushdns

If successful, the command reports “DNS server cache removed successfully”. Please visit that website again and see if that solves the problem. If not, the site may be down, you may have Wi-Fi issues, or you may have an unsafe network problem on your side that needs to be tracked. If this is someone’s computer, you can always try remote troubleshooting.

Faq

Guide about How to clear the DNS cache on macOS and Windows


In this guide, we told you about the How to clear the DNS cache on macOS and Windows; please read all steps above so that you understand How to clear the DNS cache on macOS and Windows in case if you need any assistance from us, then contact us.

How this tutorial or guide assisting you?


So in this guide, we discuss the How to clear the DNS cache on macOS and Windows, which undoubtedly benefits you.



Final note

I hope you like the guide How to clear the DNS cache on macOS and Windows. In case if you have any queries regards this article/tutorial you may ask us. Also, please share your love by sharing this article with your friends and family.

Trickbugs: Get the latest Trick and Tips
Logo
Enable registration in settings - general