Discussion Locked

windows 2000 dns cache

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

How can i check that windows 2000 dns is caching locally.

And if not how can i force dns to cache locally.

7 replies

by beermonster

Hi,
Local dns caching is basic functionality, as far as I know you can't turn it off (without stopping the dns client service) never mind having the ability to turn it on. There is a way to make the cache only store records for a short period oftime, which may be your problem. Check out the registry at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters\MaxCacheEntryTtlLimit

The value - in seconds - is how long records are cached. perhaps someone has set yours very low.

To check whether names are being cached, ping something (to ensure there is something to cache) the use the following on the command line -

ipconfig /displaydns

Hope this helps....

by sgt_shultz

well, i thought it always cached resolved dns list locally...
what's going on to make you ask this i wonder?
here are some switches for ipconfig that might reveal something of interest... (excerpted from mskb article 223413
=============================================
The syntax for Ipconfig.exe is:
ipconfig [/? | /all | /release [adapter] | /renew [adapter] | /flushdns | /registerdns]
/? Display this help message
/all Display full configuration information
/release Release the IP address for the specified adapter
/renew Renew the IP address for the specified adapter
/flushdns Purge the DNS resolver cache
/registerdns Refresh all DHCP leases and re-register DNS names
/displaydns Display the contents of the DNS resolvercache
The /flushdns switch flushes the list of locally cached DNS names. When a name is resolved from DNS, the client keeps it in the cache temporarily. This option removes the cached entries.
The /registerdns switch allows the client to re-register its dynamic DNS entries as well as renew the DHCP lease.
The /displaydns switch lists the contents of your resolved DNS name cache.

by abubin

Yes, the DNS does get stored locally in the cache. But this is limited to certain degree. You can't really do much with the cache except flushing them with the ipconfig command.

If you really need to force DNS on certain site, try putting in the ip and url in the HOSTS file located in %systemroot%\system32\drivers\etc\.

This discussion is closed to new replies.