how to flush the dns cache

use the following command to flush the dns cache.

OS X 10.4:

lookupd -flushcache

OS X 10.5:

dscacheutil -flushcache