How To Flush DNS Cache On Mac OS X Leopard

Occasionally, you’ll want to be sure you are getting fresh DNS information during development or working on servers with hostnames. This has changed in the Leopard version of Mac OS X. The following command will now flush your DNS cache on Mac OS X Leopard:

dscacheutil -flushcache