How to Flush the DNS Cache in Mac OS X

DNS cache or Domain Name Server cache is the local file your Mac system uses to convert or resolve host names to numbered IP (internet protocol) addresses. It is possible for the cache file to become corrupt or damaged, this is especially important for web designers and system administrators performing network tasks and coding web sites.

...
Use Apple terminal application to flush the DNS Cache

Step

In a new Finder window, navigate to “Applications/Utilities/Terminal” and double click on the "Terminal" application to launch it.

...
Mac OS X Terminal Application
...
The DNS Cache Flush Command for Mac OS X 10.5

Step

In your new window, enter the following command if you are using Mac OS X 10.5 Leopard:dscacheutil –flushcache

...
The DNS Cache Flush Command for Mac OS X 10.4

Step

If you are using Mac OS X 10.4 Tiger, enter the following command in your new window:lookupd –flushcache

Step

Once you have entered the above command, your DNS cache has been successfully flushed. Any issues with resolving IP addresses and host names in the DNS cache should be resolved.