Flush DNS Cache in Mac OS X 10.11 El Capitan using Terminal

That Flush DNS Cache turns to easy by using some command lines in Mac OS X 10.11 El Capitan through Terminal.

  1. Launch Terminal (found in /Applications/Utilities/), then enter the following command line.

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; say DNS cache flushed

  1. After hitting the Enter key, the admin password is required.
  2. Once you hear “DNS Cache flushed”, you get the job done successfully.

How are about the following command lines?

alias flushdns=‘dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed’

sudo dscacheutil -flushcache


sudo killall -HUP mDNSResponder