If you use a mac and need to flush the hosts local DNS cache there is a relatively simple way to accomplish this. Similar to the procedure on a Windows machine (open cmd and type ipconfig /flushdns), this procedure is done on a command line prompt.
To begin, open a terminal window
Then type the following command:
That's all there is to it. However, to make it simpler, I've created a script file on my desktop that can easily be double-clicked any time I need to flush the dns cache. If you would like to create a similar script file, follow the steps below:
Step 1 - open a terminal window.
Step 2 - navigate to where you want to save the file. By default, when I open a terminal window I am in my username's directory (/Users/adam). You can change directory up to Desktop if you want to place it on your desktop.