First, a primer on what DNS is. DNS stands for Domain Name System (or service), and it changes friendly domain names (such as yahoo.com, google.com, or eraserlake.com) into the IP addresses that the internet really works off of. It's alot easier for people to remember yahoo.com than it is to remember 66.54.245.13, which is why the DNS system was created. Anytime you type a domain name in your web browser (or anywhere else that goes across the internet), a DNS server takes that domain name, compares it against an internal table (DNS table), and then sends back the ip address it looked up to your computer. Then your computer uses that IP address to contact the actual web page.
As you an probably surmise, this can be a slow, laborious practice, especially if the DNS server is under a heavy load. So, to help expedite this, Windows 2000 has a DNS cache implemented...basically, instead of asking for the ip over and over again, it stores a local copy of the ip. This allows it to just look up the ip locally and very quickly. This local copy of ip addresses is called a DNS cache.
Windows 2000 actually comes with a pretty efficient DNS cache preinstalled. However, through the use of the registry, we can tweak the cache out to make it larger, so that it stores more ip addresses. To do that, continue reading.
First, we need to open up regedit. Start | run | regedit. Then, we need to browse to the following key:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesDnscacheParameters
We will need to modify or create the following keys. CacheHashTableBucketSize, CacheHashTableSize, MaxCacheEntryTtlLimit, and MaxSOACacheEntryLimit. If these values don't exist, you will need to create them. Please note that they are DWORDS.
Apparently the best values for these are as follows. Note, all values are in decimal.
CacheHashTableBucketSize | 384 |
CacheHashTableSize | 64000 |
MaxCacheEntryTtlLimit | 301 |
MaxSOACacheEntryLimit | 300 |
There are additional values in this key, but I wouldn't recommend tweaking them any unless you really know what you're doing.