Document Actions

Flushing DNS cache entries in OSX

by David Hostetler [posted 20080429:08:40 (Tue)]

Here's how you can get OSX (Leorpard) to flush its DNS cache:

sudo dscacheutil -flushcache

If prior to doing so you wanted to see what it actually had cached, use the following:

sudo dscacheutil -cachedump -entries

Not terribly useful, but when you're setting up a LAN and there's some IP:name flux and you need to force OSX to see the new mapping, this is the way to do it.