Donnerstag, 19. August 2010

Export DNS Cache to textfile

Hi at all,

for troubleshooting in networks sometimes it's good to know the local DNS cache for name resolution.
For example if you replace a webserver in your environment through another one and you want be sure that the correct IP will be used, then you have to look at the name resolution.

To export the local dns cache of a client you have to do the following steps:
1. start a command line with administrative privileges
2. type in the following command:
ipconfig /displaydns >C:\myDNScache.txt

"C:\myDNScache.txt" is the path for your export file

Now you are able to see if the name resolution works fine and the correct IP will be provided.

Additional:
To delete the DNS Cache you can use this:
ipconfig /flushdns

To deactivate the DNS Cache:
net stop dnscache

Greets

Keine Kommentare:

Kommentar veröffentlichen