How to clear DNS cache in Mac OS X (Leopard/Snow Lepard/Lion)?

For Mac OS X 10.4 and below:

lookupd -flushcache

 

For Mac OS X 10.5 and above:

dscacheutil -flushcache

You cannot comment on this entry