+11 April 2019: George
+ - Update python documentation for init_standard().
+ - Typos.
+
11 April 2019: Wouter
- Fix that auth zone uses correct network type for sockets for
SOA serial probes. This fixes that probes fail because earlier
.TP
.B qname\-minimisation: \fI<yes or no>
Send minimum amount of information to upstream servers to enhance privacy.
-Only sent minimum required labels of the QNAME and set QTYPE to A when
+Only send minimum required labels of the QNAME and set QTYPE to A when
possible. Best effort approach; full QNAME and original QTYPE will be sent when
upstream replies with a RCODE other than NOERROR, except when receiving
NXDOMAIN from a DNSSEC signed zone. Default is yes.
-
def init(id, cfg):
log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, cfg.port, cfg.python_script))
return True
+def init_standard(id, env):
+ log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, env.cfg.port, env.cfg.python_script))
+ return True
+
def deinit(id):
log_info("pythonmod: deinit called, module id is %d" % id)
return True
return True
+.. function:: init_standard(id, env)
+
+ Initialize module internals, like database etc.
+ Called just once on module load.
+
+ *Preferred* over the init() function above as this function's signature is the
+ same as the C counterpart and allows for extra functionality during init.
+ The previously accessible configuration options can now be found in env.cfg.
+
+ :param id: module identifier (integer)
+ :param env: :class:`module_env` module environment
+
+::
+
+ def init_standard(id, env):
+ log_info("pythonmod: init called, module id is %d port: %d script: %s" % (id, env.cfg.port, env.cfg.python_script))
+ return True
+
+
.. function:: deinit(id)
Deinitialize module internals.
extra functionality during init.
..note:: This function is preferred by unbound over the old init function.
..note:: The previously accessible configuration options can now be found in
- env.cgf.
+ env.cfg.
"""
log_info("python: inited script {}".format(env.cfg.python_script))
..note:: This function is preferred by unbound over the old init function.
..note:: The previously accessible configuration options can now be found in
- env.cgf.
+ env.cfg.
"""
log_info("python: inited script {}".format(env.cfg.python_script))
time_t prefetch_ttl;
/**
- * Reply TTL extended with serve exipred TTL, to limit time to serve
+ * Reply TTL extended with serve expired TTL, to limit time to serve
* expired message.
*/
time_t serve_expired_ttl;