How to Flush DNS Cache in Apple Mac OSX Leopard

Many of you might not know that beside Microsoft Windows has DNS caching, Apple Mac OSX Leopard does too. In order to flush the cached DNS in your Apple Mac OSX Leopard and get the latest resolve value, you can do this in your Mac Terminal.

Flush Cached DNS

In your shell, type;


dscacheutil -flushcache

To see the caching statistic on your machine, type;


dscacheutil -statistics

This command doesn’t required sudo privilege cause it’s flush base on user’s cache statistic.