ipconfig snippets

Command snippets for ipconfig

View DNS resolver cache

To view the DNS resolver cache on your computer, run the ipconfig /displaydns command:

$ ipconfig /displaydns

Here's how to run /displaydns in Command Prompt:

  1. Type cmd in the Windows search bar to open the Command Prompt app:

ipconfig open command prompt app

  1. Type ipconfig /displaydns and press Enter:

ipconfig displaydns command highlighted with results

Purge DNS resolver cache

To refresh the DNS resolver cache on your computer, run the ipconfig /flushdns command:

$ ipconfig /flushdns

Here's how to run /flushdns in Command Prompt:

  1. Type cmd in the Windows search bar to open the Command Prompt app:

ipconfig open command prompt app

  1. Type ipconfig /flushdns and press Enter:

ipconfig flushdns command highlighted with results

  1. ipconfig will confirm the flush with a "Successfully flushed the DNS Resolver Cache" message.