Display local DNS cache on a Windows computer

To see the local DNS cache on a Windows computer, run the following command:

ipconfig /displaydns

In case the output is more than could fit in the Command Prompt window, you can scroll through the output by running:

ipconfig /displaydns | more

and “hitting” more to scroll through the output. Or you can pipe the output to a text file:

ipconfig /displaydns >local_dns_cache.txt

and then open the text file with Notepad (or something similar). The benefit with this method is you can use the Find option in Notepad to quickly locate what you are looking for.