Most operating systems and DNS clients will automatically cache IP Addresses and other DNS results, this is done in order to speed up subsequent requests to the same hostname. Sometimes bad results will be cached and therefore need to be cleared from the cache in order for you to communicate with the host correctly. All major operating systems allow you to force this process, outlined below are the common steps you will need to follow in order to flush your DNS cache.
Flushing the DNS on Windows is an easy process, outlined below is the steps that should be run if you wish to clear your DNS cache.
Flushing DNS on newer versions of Windows is almost as easy as the earlier versions but due to Microsofts security additions you must run the command prompt with administrator privileges.
Note: It is also possible to type in
cmd into the Windows Vista / Windows 7 start menu search field and then right click on the cmd.exe result instead of having to navigate through the various sub menus.
Flushing the DNS in Mac OS X is an easy process, but the steps taken will depend on which version of OS X you are running.
Mountain Lion or Lion
If you are running Mac OS X 10.7 or 10.8, you need to do the following:
sudo killall -HUP mDNSResponder
If you are running Mac OS X 10.6, you need to do the following:
Leopard and below
If you are running Mac OS X 10.5.1 or below, you need to do the following:
If you are running the nscd Name Service Cache Daemon then you will need to do the following.