DNS resolves domain name to IP addresses so people do not have to remember a series of numbers (IP addresses) when trying to visit a website. In order the speed up this process and reduce the traffic on the DNS servers, most computer operating systems will store or cache DNS lookups on your computer locally. At times, you may need to clear the cache to see changes . In this tutorial, we'll show you how to clear the DNS cache for the major operating systems on the market. Typically, this process is referred to as clearing or flushing the local DNS cache.
Flushing Local DNS Cache in Windows
Open the command line window, and depending on your version of Windows, this can be done in one of the following ways:
Windows 8
- Press Win+X to open the WinX Menu.
- Right-click on Command Prompt and select Run as Administrator.
- Type the following command and press Enter: ipconfig /flushdns
- If the command was successful, you will see the following message:
Windows IP configuration successfully flushed the DNS Resolver Cache.
Windows 7 and Vista:
- Click on the Start Menu
- Type cmd in the search box
- Right click on cmd in the programs search results and choosr Run as Administrator
Once the command line window is open type the following command at the prompt and hit enter
ipconfig /flushdns
Windows 98/NT/2000/XP
- Click on the Start Menu
- Select Run
- Type or select cmd to open the command line window
Once the command line window is open type the following command at the prompt and hit enter
ipconfig /flushdns
After the flushdns is cpmpleted, type exit to close the command line window.
Flushing Local DNS Cache in MacOS
MacOS® 10.7 and 10.8- Click Applications.
- Click Utilities.
- Double-click the Terminal application.
- Type the following command:
sudo killall -HUP mDNSResponder
ALERT! Warning: To run this command, you will need to know the computer's Admin account password.
MacOS 10.5 and 10.6
- Click Applications.
- Click Utilities.
- Double-click the Terminal application.
- Type the following command: sudo dscacheutil -flushcache
Flushing Local DNS Cache in Linux
With the various distributions of Linux, you will find that by some run a daemon in the background to manage DNS cache, while others do not. Ubuntu is a good example of a distribution that doesn't run this daemon by default. If you're running Ubuntu and you have not already installed the ncsd daemon, you can install it with this command:
sudo aptitude install nscd
To restart the ncsd deamon in Linux, use this command:
sudo /etc/init.d/networking restart
If you need further assistance please feel free to contact our support department.