Tuesday, 13 March 2012

Windows DNS Tricks


Microsoft Logo

Did you know you can view your Windows DNS cache? You can very easily with the following commands. Note that on Windows 7 or Vista, you must open your command prompt as Administrator for this to work. You can do this by right clicking the Command Prompt icon and selecting Run as Administrator.



To view the DNS cache type:

ipconfig /displaynds



This prints a lot of information for each entry. To just see the host names try:

ipconfig /displaydns | find "Record Name"



To search the for just the .com host names try:

ipconfig /displaydns | find "Record Name" | find ".com"



To clear the DNS cache use:

ipconfig /flushdns

No comments:

Post a Comment