This procedure is for Mac OSX. For the Microsoft Windows version of this procedure, click here.

This procedure for flushing the DNS Cache on OS X Yosemite 10.10.4 and later.

  1. Open Terminal
  2. Enter: sudo killall -HUP mDNSResponder
  3. Enter your root password when prompted.

This procedure for flushing the DNS Cache on OS X Yosemite v10.10 through v10.10.3:

  1. Open Terminal
  2. Enter: sudo discoveryutil mdnsflushcache
  3. Enter your root password when prompted.

This procedure for flushing the DNS Cache on Mavericks, Mountain Lion, and Lion.

  1. Open Terminal
  2. Enter: sudo killall -HUP mDNSResponder
  3. Enter your root password when prompted.

This procedure for flushing the DNS Cache has been tested and works on Snow Leopard.

  1. Open Terminal
  2. Enter: sudo dscacheutil -flushcache
  3. Enter your root password when prompted.

All done!

You can now close the Terminal window and your cache is now clear.