Clear DNS cache in Mac OS X via Terminal command line (all versions)

The method for clearing or flushing the local cache in Mac OS X has changed over the years. Clear your DNS cache on Yosemite, Mavericks, Lion, Mountain Lion, Snow Leopard and Leopard using the following Terminal commands:

OS X 10.10 Yosemite

OS X 10.9 Mavericks

OS X 10.7 Lion & 10.8 Mountain Lion

Mac OS X 10.5 Leopard & 10.6 Snow Leopard

 

Leave a Reply