Updated on Apr 23, 2018
The DNS cache stores the IP addresses of the websites that you have recently accessed via your web browser. That accelerates access by skipping the process of querying the name servers.
Navigation List
To clear the DNS cache in Windows 10 follow these steps:
ipconfig /flushdns
If the command is executed properly it will provide you with a successfully flushed message.
To clear the DNS cache in Windows 8 follow these steps:
ipconfig /flushdns
If the command is executed properly it will provide you with a successfully flushed message.
To clear DNS cache for windows 7 follow these steps:
ipconfig /flushdns
If the command is executed properly it will provide you with a successfully flushed message.
To clear DNS cache for windows Vista/XP/2000, follow these steps:
ipconfig /flushdns
If the command is executed properly it will provide you with a successfully flushed message.
Administrators Access
In order to execute the commands in the steps bellow you must know the administrator's login details
To clear the DNS cache for MacOS 10.13 & 10.14, you must:
sudo killall -HUP mDNSResponder; sleep 2
To clear the DNS cache for MacOS 10.12, you must:
sudo killall -HUP mDNSResponder
To clear the DNS cache for MacOS 10.11, you must:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
To clear the DNS cache for MacOS 10.10, you must:
sudo discoveryutil mdnsflushcache
To clear the DNS cache for MacOS 10.7, 10.8 & 10.9, you must:
sudo killall -HUP mDNSResponder
To clear the DNS cache for MacOS 10.5, 10.6, you must:
sudo dscacheutil -flushcache
To clear the DNS cache in Ubuntu, you will have to:
sudo /etc/init.d/nscd restart
Now you know why and how to flush your DNS cache on any of the widely used Operating Systems.