Windows Displaying the Contents of DNS

Posted on in Categories , , last updated February 5, 2009

Q. How do I display the contents of my DNS client resolver cache under Windows server 2000 / 2003 / 2008 / XP / Vista operating systems?

A. In order to check the contents of your DNS client resolver cache and hosts file for correct entries, you need to use the ipconfig command under Windows operating systems.

Click on Start > Run

Type cmd and pree [Enter] key

At the DOS shell prompt type the following command:
ipconfig /displaydns

In order to flush those records, type
ipconfig /flushdns

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Leave a Comment