Clear DNS cache in OS X

January 11, 2011

If you ever find yourself wanting to clear the DNS cache in OS X, here's how it's done:

dscacheutil -flushcache