I am having a problem trying to get the DNS cache without using ipconfig.

I am unable to use the ipconfig tool and was looking for an alternative command line tool to display the DNS cache, just like in this command:

ipconfig /displaydns
link|improve this question
feedback

migrated from stackoverflow.com Jul 20 '11 at 11:28

This question came from our site for professional and enthusiast programmers.

1 Answer

You could try using the netsh command if you're using a newer version of Windows.

Check out this technet article for more information

From the article:

Syntax show dns [[name=]InterfaceName]

Parameters [ name= ] InterfaceName : Specifies the name of the interface whose DNS configuration you want to display. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").

link|improve this answer
feedback

Your Answer

 
or
required, but never shown