Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jul 20 '11 at 11:28

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

2 Answers 2

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 at 15:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.