How To Clear DNS Cache In Mac OSX 10.9 Mavericks
DNS request are usually cached, that’s good as it help to speeds up the lookups within the same host but sometimes we will want to clear the cache so it don’t hold the values that are no longer valid or we edited hosts file to block or redirect hosts or IP. To clear DNS cache in Mac OSX, we can do it with the help of Terminal.
Mac OSX 10.9
Open up the application called “Terminal”
Type this command:
To reload DNS type this command:
sudo killall -HUP mDNSResponder
For older versions of OS X go here.
For new OS X 10.10 Yosemite go here.
If you need to edit hosts file go here.