How to flush DNS cache in OS X El Capitan?

Open a Terminal (in /Applications/Utilities/ or search with Spotlight) and run the following command:

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder;

 

 

You cannot comment on this entry