How do you clear a DNS cache?


Quick Answer

A DNS cache can be cleared through the command prompt. Access command prompt with administrative rights, and type in the code "ipconfig /flushdns" to clear the DNS cache.

Continue Reading

Full Answer

  1. Access the command prompt with administrative rights

    The methods of accessing the command prompt with administrative rights are different for different versions of operating systems. For Windows 7, click on the Start button and type in "cmd" in the search box. When "cmd" appears on the search result, right-click on it and select Run as administrator. For computers running on Windows 8 or later, press the windows key (the key that has the Windows logo on it) and the x key at the same time. When the WinX menu comes up, find command prompt, right-click on it, and select Run as administrator.

  2. Clear the DNS cache

    When the command prompt window appears, type in "ipconfig /flushdns" and hit Enter. This sends a command to the OS to flush and reset the DNS cache. If the command is successful, the window will show a message that reads "Windows IP configuration successfully flushed the DNS Resolver Cache."

  3. Exit the command prompt

    After the confirmation message appears, type "exit" and hit Enter to exit the command prompt window, or simply click on the Close button.

Learn more about Internet & Networking

Related Questions