How Do I Perform a DNS Flush from a DOS Command Prompt?

How do I perform a DNS flush from a DOS command prompt?

How do I clear my DNS cache?

How do I flush my DNS cache?


Solution:

To flush your computer's DNS cache:

  1. Do one of the following:
  • On Windows 7: Go to the Start menu, then type cmd into the Start Search or Search programs and files field and press enter.
  • On Windows 10: Type cmd in the Type here to search field on the taskbar, then press the enter key.
The 'Command Prompt' window appears.
  1. Type the following command: 
ipconfig /flushdns (then press the Enter key)

If the command was entered properly, you will receive the following message: Successfully flushed the DNS Resolver Cache.

Was this article helpful?