How to clear the local DNS cache in Mac OS?

You can flush your local DNS cache in Mac OS (up to El Capitan) from your Terminal:

  • Go to Applications -> Utilities -> Terminal
  • Type the following command and press Enter: dscacheutilflushcache
  • After that type, the second command and press Enter: sudo killallHUP mDNSResponder
It is advisable to clear up your browser\’s cache as well.