One of those simple, incredibly useful comands that you can never remember! Clearing the DNS cashe on an Mac OS X 10.5 (Leopard) machine, or higher, can be done with the command:
dscacheutil -flushcache
For Mac OS X 10.4 and earlier its:
lookupd -flushcache