Clearing the DNS Cache in Leopard
Published on 4 Feb 2008 · Filed in Tutorial · 84 words (estimated 1 minutes to read)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!