How To Clear Your Local DNS Cache

Your DNS cache stores the locations (IP addresses) of web servers that contain web pages which you have recently viewed. If the location of the web server/site changes before the entry in your DNS cache updates, your site will still load from the old location. Some clues for this could be 404 errors or changes that you make not appearing. Those can indicate that your DNS cache needs to be updated to redirect towards the new location.



To check what DNS information your site is currently resolving to, please use our DNS tool located here: HostDime DNS Tool

You can also use a proxy tool such as HostDime Proxy Test in order to test a connection from your location to a website without using your local DNS Cache

The following methods allow you to remove old and inaccurate DNS information.



Windows 8



To clear your DNS cache if you use Windows 8, perform the following steps:




  1. On your keyboard, press Win+X to open the WinX Menu.

  2. Right-click Command Prompt and select Run as Administrator.

  3. Run the following command: ipconfig /flushdns



*If the command runs successfully, you should see the following output:





Windows 7



To clear your DNS cache if you use Windows 7, perform the following steps:




  1. Click Start.

  2. Enter cmd in the Start menu search text box.

  3. Right-click Command Prompt and select Run as Administrator.

  4. Run the following command: ipconfig /flushdns



*If the command runs successfully, you should see the following output:





MacOS 10.10



To clear your DNS cache if you use MacOS X version 10.10, perform the following steps:




  1. Click Applications.

  2. Click Utilities.

  3. Click Terminal.

  4. Run the following command: sudo discoveryutil mdnsflushcache

  5. If the command succeeds, the system does not return any output.



Note: To run this command, you must know the computer's Admin account password.



If you are using an operating system not specified on this page, please consult cPanel's documentation for more information: cPanel DNS Cache