Applicable in Init-class directives.
The host-dns-cache-init function is used to cache host names of the origin servers. If DNS lookup are caches, then when the server gets a request from the client servers, it caches the server’s host name information.
The following table describes parameters for the dns-cache-init function.
Table 5–6 host-dns-cache-init parameters
Parameter |
Description |
---|---|
(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 before a cache entry should expire. Acceptable values are 1 to 31536000 (1 year). The default value is 1200 seconds (20 minutes). |
|
negative-dns-cache |
Enables or disables the caching of invalid host names. The default value is yes. |
Init fn=“host-dns-cache-init” cache-size=“2140” expire=“600”