How to Clear or Flush Your DNS Cache to Speed Up Propagation (StickyHosting Knowledge Base)
Overview:
Your DNS cache stores the locations (IP addresses) of web servers that contain web pages you have recently visited. If the location of the web server changes before the entry in your DNS cache updates, you will no longer be able to access the site.
If you encounter a large number of HTML 404 error codes, you may need to clear your DNS cache. After you clear your DNS cache, your computer will query the nameservers for the updated DNS information.
How to Clear Your DNS Cache:
Here are the methods to clear the DNS cache on different operating systems.
For Windows 8:
-
Press Win+X to open the WinX Menu.
-
Right-click Command Prompt and select Run as Administrator.
-
Run the following command:
-
If successful, the system will display:
For Windows 7:
-
Click Start.
-
Type cmd in the search box.
-
Right-click Command Prompt and select Run as Administrator.
-
Run the following command:
-
If successful, the system will display:
For Windows XP, 2000, or Vista:
-
Click Start.
-
In the Start menu, click Run.
-
If you don't see the Run option in Vista, enter run in the Search bar.
-
-
Run the following command in the Run text box:
-
If successful, the system will display:
For MacOS X 10.10.4 and above:
-
Click Applications.
-
Click Utilities.
-
Open Terminal.
-
Run the following command:
-
If successful, the system will not display any output.
Warning: You will need to know the Administrator password to run this command.
For MacOS X 10.10.1, 10.10.2, and 10.10.3:
-
Click Applications.
-
Click Utilities.
-
Open Terminal.
-
Run the following command:
-
If successful, the system will not display any output.
Warning: You will need to know the Administrator password to run this command.
For MacOS X 10.7, 10.8, and 10.9:
-
Click Applications.
-
Click Utilities.
-
Double-click Terminal.
-
Run the following command:
-
If successful, the system will not display any output.
Warning: You will need to know the Administrator password to run this command.
For MacOS X 10.5 and 10.6:
-
Click Applications.
-
Click Utilities.
-
Double-click Terminal.
-
Run the following command:
-
If successful, the system will not display any output.
Warning: You will need to know the Administrator password to run this command.