How to clear the DNS cache on your computer

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

  1. Click the Start button and go to Command Prompt Start > All Programs > Accessories > Command Prompt.
  2. Make sure to right-click on the Command Prompt application and choose Run as Administrator.
  3. 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

  1. Make sure you are on the Windows 8 start screen.
  2. type cmd and the Windows search bar will appear on the right side with the search results.
  3. Right-click on Command Prompt and click Run as Administrator.
  4. Type ipconfig/flushdns.

MacOS 10.7 / 10.8

  1. Click on Applications
  2. Click on Utilities
  3. Double-click the Terminal app
  4. Type the following command: sudo killall -HUP mDNSResponder

MacOS 10.5 / 10.6

  1. Click Applications
  2. Click on Utilities
  3. Double-click the Terminal app
  4. Type the following command: sudo dscacheutil -flushcache
Share this:
Updated on January 31, 2021

Was this article helpful?

Related Articles