Flushing DNS Cache in OSX
Phil Tapia Apr. 29
In website and server testing you will need to sometimes clear your DNS cache. This is the local table of hostnames and corresponding IP addresses. As you use your machine, addresses & DNS lookups are cached to speed up seek/load times. This is often ok, but sometimes you may need to clear/flush your cache if something has changed or updated and you still have the old lookup value cached. To do this, open Terminal and at the prompt type the command: lookupd -flushcache
If its successful it won’t error and will return you to a prompt. To test, go to the address you thought was cached and see if the lookup discovers the new IP address. I bet it will!

