In this article, you will learn how to clear the DNS cache on Mac or Windows operating systems. It is important to clear your DNS cache as it may contain outdated information such as the website displaying differently.
Microsoft Windows #
To clear the DNS cache on Microsoft Windows, follow these steps:
- Press the Windows icon located in the bottom left
- Type CMD then click on the application command prompt
The CMD window will open
- Type the following into the window
- Press enter
The DNS cache has now been cleared
Apple Mac OS X #
To clear the DNS cache on Apple Mac OS X, follow these steps:
- Open a Finder window and navigate to the following
Applications > Utilities then click Terminal. A terminal window will now open.
- Type the following into the terminal window:
macOS Catalina & Higher sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder macOS Mojave
macOS High Sierra
OS X Mountain Lion
Mac OS X Lion
sudo killall -HUP mDNSResponder Mac OS X El Capitan
OS X Mavericks
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder OS X Yosemite sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches Mac OS X Snow Leopard
Mac OS X Leopard
sudo dscacheutil -flushcache Mac OS X Tiger lookupd -flushcache
- Press Enter
- Enter your password then press enter again.
When you type your password it will be invisible.
- The DNS cache is now clear.
Google Chrome Browser #
If you are using the google chrome browser you will also need to clear it as it uses an internal DNS cache. To clear it, follow these steps:
- Open Google Chrome.
- In the address bar, type the following:
- Press .
- In the left menu press Sockets.
You have now reset the DNS in chrome