How to Clear or Flush DNS Cache on a Mac OS X Yosemite or El Capitan

To flush the DNS cache in OS X Yosemite and Mac OS X El Capitan

The reason you do this is to fix an issue when you put in a name of a server or website in your browser and it doesn't go to the right place. This clears the DNS cash and then it automatically rebuilds a new one with the accurate matching ip addresses.
Open the terminal and Run this command
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; say cache flushe

No comments: