Flushing your DNS cache in Windows

Windows XP

  1. Click the Start button and then click Run.
  2. Type in cmd and click OK.
  3. In the window that comes up, enter:
    C:\Users\username> ipconfig /flushdns
  4. Press the 'Enter' key and repeat the process two more times.
  5. Type exit, and then press the 'Enter' key to close the window.

Windows Vista

  1. Click the Start button.
  2. In the menu, select ‘All Programs’.
  3. Click Accessories.
  4. Right click on ‘Command Prompt’.
  5. Select the option ‘Run As Administrator’.
  6. In the window that opens, type the following, and then press 'Enter':
    C:\Users\username> ipconfig /flushdns
  7. Press the 'Enter' key and repeat the process two more times.
  8. Type exit, and then press the 'Enter' key to close the window.

If you wish to instead verify what domains and IPs your computer currently has cached, you may use the command ipconfig /displaydns in the steps described above.

Windows 7

  1. Click the Start button, and then type 'cmd' in the search bar (where it says 'search for programs and files').
  2. In the command prompt that pops up, enter:
    C:\Users\username> ipconfig /flushdns
  3. Press the 'Enter' key, and then repeat the process two more times.
  4. Type exit, and then press the 'Enter' key to close the window.

Windows 8 & 10

  1. Click the Windows logo while holding the R key at the same time.
    The run box appears.
  2. In the run box, type cmd and then hit the 'Enter' key.
  3. In the command prompt that pops up, enter:
    C:\Users\username> ipconfig /flushdns
    The command runs and returns to the prompt.
  4. Type exit, and then press the ‘Enter’ key to close the window.

When exiting the Windows command prompt, you may see a pop-up box claiming that Windows "...cannot end the program as it may still be running..." – it's completely safe (and required) to click the End Now button to exit.

See also

Did this article answer your questions?

Article last updated .