How To: Disable Caching Failed DNS Lookups

| | No TrackBacks
Normally, DNS lookup results are cached, to lower the stress upon name servers; under normal circumstances, DNS changes are rare, and caching the responses is OK.

However, failed DNS lookups are cached, as well. In many cases, when the failure is temporary (DNS server times out, or there are other transient error states), this could lead to a perfectly valid domain name failing to resolve. There are several means to handle that.

1. Reboot the computer to clear the DNS cache. Not a good solution in many cases.

2. Flush DNS cache by running
ipconfig /flushdns
command. However, this cures the consequences, but does not cure the reason.

3. Update your registry. Run regedit utility (please do not forget to make a backup copy of your registry), navigate to
HKLM\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters
and set the following keys to zero:
NegativeCacheTime
NetFailureCacheTime
NegativeSOACacheTime

That will make the computer to request DNS lookup from the upstream DNS server every time. If significant delays are noticed when making DNS queries, it could mean you are asking for a wrong domain name.

No TrackBacks

TrackBack URL: /blog/mt-tb.cgi/47

blog comments powered by Disqus

About this Entry

This page contains a single entry by Konstantin Boyandin published on December 21, 2009 10:00 AM.

Tips: Naming Network Connections was the previous entry in this blog.

How To: Copying a Web Server Configuration is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.