In today’s article from Sered we’ll talk about how to clear the DNS cache.
If we want to reload a website we must clear the DNS cache. To do this you must follow the steps below:
On Windows
Start button → Run → CMD and then Enter.
Type the command
ipconfig /flushdns
and press Enter.
On Mac
On Mac the command depends on the version you have. To know your OS X version click on the Apple icon at the top left and click “About this Mac”.
Below we show the procedure for the different Mac versions.
Mac OS X El Capitan
If you have Mac OS X 10.11
In the command terminal run:
sudo killall -HUP mDNSResponder
Mac OS X Yosemite
If you have Mac OS X 10.10
In the command terminal run:
sudo discoveryutil udnsflushcaches
Mac OS X Mavericks
If you have Mac OS X 10.9
In the command terminal run:
sudo killall -HUP mDNSResponder
Mac OS X Mountain Lion
If you have Mac OS X 10.8
In the command terminal run:
sudo killall -HUP mDNSResponder
Mac OS X Lion
If you have Mac OS X 10.7
In the command terminal run:
sudo killall -HUP mDNSResponder
Mac OS X Snow Leopard
If you have Mac OS X 10.6
In the command terminal run:
sudo dscacheutil -flushcache
Mac OS X Leopard and earlier
If you have Mac OS X 10.5.1 or earlier
In the command terminal run:
sudo lookupd -flushcache
On Linux
In the command line run:
sudo /etc/init.d/nscd restart
On iPhone/iPad/Android or Smartphones
To clear the DNS cache on these devices, just enable Airplane Mode and then disable it again.
Notes:
You should also close the browser so that it does not resolve previous DNS.
If you don’t know how to run these commands, another simpler solution would be to restart both your router and your computer.