Applicable in Init-class directives.
The host-dns-cache-init function is used to cache host names of the origin servers. If DNS looks up 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) it takes for a cache entry to expire. Acceptable values are 1 to 31536000 (1 year); the default is 1200 seconds (20 minutes). |
|
negative-dns-cache |
To enable/disable caching invalid hostnames; the default is yes. |
Init fn=“host-dns-cache-init” cache-size=“2140” expire=“600”