Scott's Weblog The weblog of an IT pro specializing in virtualization, networking, open source, and cloud computing

Clearing the DNS Cache in Leopard

In previous versions of Mac OS X, I could use this command to flush the DNS resolver cache:

lookupd -flushcache

However, in Mac OS X version 10.5 “Leopard,” this command no longer works! I had an occasion today where I needed to flush the DNS resolver cache due to a configuration error in the lab. Fortunately a quick Google search turned up this page, where I found that the correct command to use in Leopard is this one:

dscacheutil -flushcache

Works like a champ!

Be social and share this post!