Flush DNS Cache in Leopard

The team at Apple likes to keep us on our toes. They seem to change this command a lot. In leopard, you can flush your local DNS resolver cache with this command:

dscacheutil -flushcache

If you’re still on Tiger, you will need to use the old command:

lookupd -flushcache