james kahn's scratchpad

a blog on technology

How to Flush the DNS Cache in OS X Lion

The old way to flush the DNS cache in versions of MacOS X prior to Lion was to run the command:

dscacheutil -flushcache

This doesn’t work for me in Lion. To flush the DNS cache in Lion, run:

sudo killall -HUP mDNSResponder