Init SAFs
242
Netscape Enterprise Server NSAPI Programmer’s Guide • November 2001
dns-cache-init
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).
Parameters
Example:
flex-init
Applicable in
Init
-class directives.
The
flex-init
function opens the named log file to be used for flexible logging
and establishes a record format for it. The log format is recorded in the first line of
the log file. You cannot change the log format while the log file is in use by the
server.
The
flex-log
function writes entries into the log file during the
AddLog
stage of
the request handling process.
cache-size
(optional) specifies how many entries are contained in the
cache. Acceptable values are 32 to 32768; the default value is
1024.
expire
(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
"
Summary of Contents for ENTERPRISE SERVER 6.0
Page 1: ...NSAPI Programmer s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 134: ...CGI to NSAPI Conversion 134 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 306: ...cinfo 306 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 312: ...Sample MIME Types File 312 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 324: ...Buffered Streams 324 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 332: ...332 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 340: ...340 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 346: ...346 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...
Page 352: ...352 Netscape Enterprise Server NSAPI Programmer s Guide November 2001...