Sun Java System Web Server 6.1 SP9 NSAPI Programmer's Guide


Applicable in Init-class directives.

The dns-cache-init function specifies that DNS lookups should be cached when DNS lookups are enabled. If DNS lookups are cached, then when the server gets a client’s host name information, it stores that information in the DNS cache. If the server needs information about the client in the future, the information is available in the DNS cache.

You may specify the size of the DNS cache and the time it takes before a cache entry becomes invalid. The DNS cache can contain 32 to 32768 entries; the default value is 1024 entries. Values for the time it takes for a cache entry to expire (specified in seconds) can range from 1 second to 1 year; the default value is 1200 seconds (20 minutes).


The following table describes parameters for the dns-cache-init function.

Table 2–3 dns-cache-init parameters




(Optional) Specifies how many entries are contained in the cache. Acceptable values are 32 to 32768; the default value is 1024.


(Optional) Specifies how long (in seconds) it takes for a cache entry to expire. Acceptable values are 1 to 31536000 (1 year); the default is 1200 seconds (20 minutes).


Init fn="dns-cache-init" cache-size="2140" expire="600"