Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question

migrated from Jul 20 '11 at 11:28

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

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").

share|improve this answer

Perhaps a lame answer, but sending the output to a file means you can see all the output:

ipconfig /displaydns > dns-cache.txt

share|improve this answer
I realise that isn't helpful if you are restricted from running ipconfig, but I was looking for a graphic interface for this, but then realised I just needed a better interface for reading the text. – dunxd May 22 '14 at 15:58

You must log in to answer this question.