Disabling DNS Caching for Negative Answers

Windows XP stores a cache for all DNS answers, either negative or positive.
Positive caching is somewhat useful but i think that negative caching is evil, it really makes no sense for me.

Developing web applications using multiple networks and multiple local DNS server sometimes can happen that your box receive a negative DNS answer and you aren’t able to get the correct local resolution.

You can clear the cache with “ipconfig /flushdns” but sometimes this not works so a DNS Client Service reboot is mandatory using “net stop dnscache” and “net start dnscache“.

You can also disable Negative responses caching through MaxNegativeCacheTtl registry key: setting it to 0 will disable caching.
Please copy the boxed text into a .reg file and add to the windows registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters]
“MaxNegativeCacheTtl”=dword:00000000

Reboot and have fun!

Related Posts with Thumbnails

Popularity: 2%

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “Disabling DNS Caching for Negative Answers”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Indirizzo per il Trackback