Overview
This article describes how to clear the DNS cache on your computer. Many computer operating systems use caching to store DNS lookup results. Normally this is not a problem and accelerates network performance. However, when you are developing a web site or configuring domain settings, your computer's DNS cache can get in the way, preventing you from accessing the correct site. To clear the DNS cache, follow the appropriate procedure below for your computer's operating system or web browser.
Windows Vista / Windows 7 operating system
To clear the DNS cache on your computer on
- Click the Start button and go to Command Prompt Start > All Programs > Accessories > Command Prompt.
- Make sure to right-click on the Command Prompt application and choose Run as Administrator.
- Type ipconfig/flushdns.
It is also possible to type cmd in the search field in the Windows Vista / Windows 7 Start menu and then right-click on the cmd.exe result instead of having to navigate through the various submenus.
Windows 8 / Windows 8.1 operating system
- Make sure you are on the Windows 8 start screen.
- type cmd and the Windows search bar will appear on the right side with the search results.
- Right-click on Command Prompt and click Run as Administrator.
- Type ipconfig/flushdns.
MacOS 10.7 / 10.8
- Click on Applications
- Click on Utilities
- Double-click the Terminal app
- Type the following command: sudo killall -HUP mDNSResponder
MacOS 10.5 / 10.6
- Click Applications
- Click on Utilities
- Double-click the Terminal app
- Type the following command: sudo dscacheutil -flushcache