When you access any domain from your system, an IP of remote system is resolved by DNS server. When you access it first time, IP is directly resolve from DNS server’s, then system make a cache on local system to not to send query to DNS server each time for same domain. This is very useful for reducing traffic on DNS servers but some times we changed the IP of corresponding domain but your system will still resolve to old IP due to DNS cache exists on your local system. That time you need to clear/flush DNS cache on your local system. This article will show you to how to Flush DNS cache on Windows and MacOS systems using command line.
How to Clear DNS Cache
1. Clear DNS Cache on Windows System
First open run window by key shortcut `window + r`. Now type cmd in run window and press enter.It will open windows command line interface. Now type following command to clear dns cache on windows system.
c:/> ipconfig /flushdns
2. Clear DNS Cache on MacOS 10.X
First open command line interface on your MAC system and run below command to clear DNS cache on your MAC system.
MacOS 10.10 Users:$ sudo discoveryutil mdnsflushcache MacOS 10.7, 10.8, and 10.9 Users:$ sudo killall -HUP mDNSResponder