xref: /netbsd-src/external/bsd/unbound/dist/pythonmod/doc/modules/config.rst (revision 91f7d55fb697b5e0475da4718fa34c3a3ebeac85)
13b6c3722SchristosConfiguration interface
23b6c3722Schristos=======================
33b6c3722Schristos
43b6c3722SchristosCurrently passed to Python module in init(module_id, cfg).
53b6c3722Schristos
63b6c3722Schristosconfig_file
73b6c3722Schristos--------------------
83b6c3722Schristos
93b6c3722Schristos.. class:: config_file
103b6c3722Schristos
113b6c3722Schristos   This class provides these data attributes:
123b6c3722Schristos
133b6c3722Schristos   .. attribute:: verbosity
143b6c3722Schristos
153b6c3722Schristos      Verbosity level as specified in the config file.
163b6c3722Schristos
173b6c3722Schristos   .. attribute:: stat_interval
183b6c3722Schristos
193b6c3722Schristos      Statistics interval (in seconds).
203b6c3722Schristos
213b6c3722Schristos   .. attribute:: stat_cumulative
223b6c3722Schristos
233b6c3722Schristos      If false, statistics values are reset after printing them.
243b6c3722Schristos
253b6c3722Schristos   .. attribute:: stat_extended
263b6c3722Schristos
273b6c3722Schristos      If true, the statistics are kept in greater detail.
283b6c3722Schristos
293b6c3722Schristos   .. attribute:: num_threads
303b6c3722Schristos
313b6c3722Schristos      Number of threads to create.
323b6c3722Schristos
333b6c3722Schristos   .. attribute:: port
343b6c3722Schristos
353b6c3722Schristos      Port on which queries are answered.
363b6c3722Schristos
373b6c3722Schristos   .. attribute:: do_ip4
383b6c3722Schristos
393b6c3722Schristos      Do ip4 query support.
403b6c3722Schristos
413b6c3722Schristos   .. attribute:: do_ip6
423b6c3722Schristos
433b6c3722Schristos      Do ip6 query support.
443b6c3722Schristos
453b6c3722Schristos   .. attribute:: do_udp
463b6c3722Schristos
473b6c3722Schristos      Do udp query support.
483b6c3722Schristos
493b6c3722Schristos   .. attribute:: do_tcp
503b6c3722Schristos
513b6c3722Schristos      Do tcp query support.
523b6c3722Schristos
533b6c3722Schristos   .. attribute:: outgoing_num_ports
543b6c3722Schristos
553b6c3722Schristos      Outgoing port range number of ports (per thread).
563b6c3722Schristos
573b6c3722Schristos   .. attribute:: outgoing_num_tcp
583b6c3722Schristos
593b6c3722Schristos      Number of outgoing tcp buffers per (per thread).
603b6c3722Schristos
613b6c3722Schristos   .. attribute:: incoming_num_tcp
623b6c3722Schristos
633b6c3722Schristos      Number of incoming tcp buffers per (per thread).
643b6c3722Schristos
653b6c3722Schristos   .. attribute:: outgoing_avail_ports
663b6c3722Schristos
673b6c3722Schristos      Allowed udp port numbers, array with 0 if not allowed.
683b6c3722Schristos
693b6c3722Schristos   .. attribute:: msg_buffer_size
703b6c3722Schristos
713b6c3722Schristos      Number of bytes buffer size for DNS messages.
723b6c3722Schristos
733b6c3722Schristos   .. attribute:: msg_cache_size
743b6c3722Schristos
753b6c3722Schristos      Size of the message cache.
763b6c3722Schristos
773b6c3722Schristos   .. attribute:: msg_cache_slabs
783b6c3722Schristos
793b6c3722Schristos      Slabs in the message cache.
803b6c3722Schristos
813b6c3722Schristos   .. attribute:: num_queries_per_thread
823b6c3722Schristos
833b6c3722Schristos      Number of queries every thread can service.
843b6c3722Schristos
853b6c3722Schristos   .. attribute:: jostle_time
863b6c3722Schristos
873b6c3722Schristos      Number of msec to wait before items can be jostled out.
883b6c3722Schristos
893b6c3722Schristos   .. attribute:: rrset_cache_size
903b6c3722Schristos
913b6c3722Schristos      Size of the rrset cache.
923b6c3722Schristos
933b6c3722Schristos   .. attribute:: rrset_cache_slabs
943b6c3722Schristos
953b6c3722Schristos      Slabs in the rrset cache.
963b6c3722Schristos
973b6c3722Schristos   .. attribute:: host_ttl
983b6c3722Schristos
993b6c3722Schristos      Host cache ttl in seconds.
1003b6c3722Schristos
1013b6c3722Schristos   .. attribute:: lame_ttl
1023b6c3722Schristos
1033b6c3722Schristos      Host is lame for a zone ttl, in seconds.
1043b6c3722Schristos
1053b6c3722Schristos   .. attribute:: infra_cache_slabs
1063b6c3722Schristos
1073b6c3722Schristos      Number of slabs in the infra host cache.
1083b6c3722Schristos
1093b6c3722Schristos   .. attribute:: infra_cache_numhosts
1103b6c3722Schristos
1113b6c3722Schristos      Max number of hosts in the infra cache.
1123b6c3722Schristos
1133b6c3722Schristos   .. attribute:: infra_cache_lame_size
1143b6c3722Schristos
1153b6c3722Schristos      Max size of lame zones per host in the infra cache.
1163b6c3722Schristos
1173b6c3722Schristos   .. attribute:: target_fetch_policy
1183b6c3722Schristos
1193b6c3722Schristos      The target fetch policy for the iterator.
1203b6c3722Schristos
1213b6c3722Schristos   .. attribute:: if_automatic
1223b6c3722Schristos
1233b6c3722Schristos      Automatic interface for incoming messages. Uses ipv6 remapping,
1243b6c3722Schristos      and recvmsg/sendmsg ancillary data to detect interfaces, boolean.
1253b6c3722Schristos
1263b6c3722Schristos   .. attribute:: num_ifs
1273b6c3722Schristos
1283b6c3722Schristos      Number of interfaces to open. If 0 default all interfaces.
1293b6c3722Schristos
1303b6c3722Schristos   .. attribute:: ifs
1313b6c3722Schristos
132*91f7d55fSchristos      List of interface description strings (IP addresses).
1333b6c3722Schristos
1343b6c3722Schristos   .. attribute:: num_out_ifs
1353b6c3722Schristos
1363b6c3722Schristos      Number of outgoing interfaces to open.
1373b6c3722Schristos      If 0 default all interfaces.
1383b6c3722Schristos
1393b6c3722Schristos   .. attribute:: out_ifs
1403b6c3722Schristos
141*91f7d55fSchristos      List of outgoing interface description strings (IP addresses).
1423b6c3722Schristos
1433b6c3722Schristos   .. attribute:: root_hints
1443b6c3722Schristos
1453b6c3722Schristos      The root hints.
1463b6c3722Schristos
1473b6c3722Schristos   .. attribute:: stubs
1483b6c3722Schristos
1493b6c3722Schristos      The stub definitions, linked list.
1503b6c3722Schristos
1513b6c3722Schristos   .. attribute:: forwards
1523b6c3722Schristos
1533b6c3722Schristos      The forward zone definitions, linked list.
1543b6c3722Schristos
1553b6c3722Schristos   .. attribute:: donotqueryaddrs
1563b6c3722Schristos
1573b6c3722Schristos      List of donotquery addresses, linked list.
1583b6c3722Schristos
1593b6c3722Schristos   .. attribute:: acls
1603b6c3722Schristos
1613b6c3722Schristos      List of access control entries, linked list.
1623b6c3722Schristos
1633b6c3722Schristos   .. attribute:: donotquery_localhost
1643b6c3722Schristos
1653b6c3722Schristos      Use default localhost donotqueryaddr entries.
1663b6c3722Schristos
1673b6c3722Schristos   .. attribute:: harden_short_bufsize
1683b6c3722Schristos
1693b6c3722Schristos      Harden against very small edns buffer sizes.
1703b6c3722Schristos
1713b6c3722Schristos   .. attribute:: harden_large_queries
1723b6c3722Schristos
1733b6c3722Schristos      Harden against very large query sizes.
1743b6c3722Schristos
1753b6c3722Schristos   .. attribute:: harden_glue
1763b6c3722Schristos
1773b6c3722Schristos      Harden against spoofed glue (out of zone data).
1783b6c3722Schristos
1793b6c3722Schristos   .. attribute:: harden_dnssec_stripped
1803b6c3722Schristos
1813b6c3722Schristos      Harden against receiving no DNSSEC data for trust anchor.
1823b6c3722Schristos
1833b6c3722Schristos   .. attribute:: harden_referral_path
1843b6c3722Schristos
1853b6c3722Schristos      Harden the referral path, query for NS,A,AAAA and validate.
1863b6c3722Schristos
1873b6c3722Schristos   .. attribute:: use_caps_bits_for_id
1883b6c3722Schristos
1893b6c3722Schristos      Use 0x20 bits in query as random ID bits.
1903b6c3722Schristos
1913b6c3722Schristos   .. attribute:: private_address
1923b6c3722Schristos
1933b6c3722Schristos      Strip away these private addrs from answers, no DNS Rebinding.
1943b6c3722Schristos
1953b6c3722Schristos   .. attribute:: private_domain
1963b6c3722Schristos
1973b6c3722Schristos      Allow domain (and subdomains) to use private address space.
1983b6c3722Schristos
1993b6c3722Schristos   .. attribute:: unwanted_threshold
2003b6c3722Schristos
2013b6c3722Schristos      What threshold for unwanted action.
2023b6c3722Schristos
2033b6c3722Schristos   .. attribute:: chrootdir
2043b6c3722Schristos
2053b6c3722Schristos      Chrootdir, if not "" or chroot will be done.
2063b6c3722Schristos
2073b6c3722Schristos   .. attribute:: username
2083b6c3722Schristos
2093b6c3722Schristos      Username to change to, if not "".
2103b6c3722Schristos
2113b6c3722Schristos   .. attribute:: directory
2123b6c3722Schristos
2133b6c3722Schristos      Working directory.
2143b6c3722Schristos
2153b6c3722Schristos   .. attribute:: logfile
2163b6c3722Schristos
2173b6c3722Schristos      Filename to log to.
2183b6c3722Schristos
2193b6c3722Schristos   .. attribute:: pidfile
2203b6c3722Schristos
2213b6c3722Schristos      Pidfile to write pid to.
2223b6c3722Schristos
2233b6c3722Schristos   .. attribute:: use_syslog
2243b6c3722Schristos
2253b6c3722Schristos      Should log messages be sent to syslogd.
2263b6c3722Schristos
2273b6c3722Schristos   .. attribute:: hide_identity
2283b6c3722Schristos
2293b6c3722Schristos      Do not report identity (id.server, hostname.bind).
2303b6c3722Schristos
2313b6c3722Schristos   .. attribute:: hide_version
2323b6c3722Schristos
2333b6c3722Schristos      Do not report version (version.server, version.bind).
2343b6c3722Schristos
2353b6c3722Schristos   .. attribute:: identity
2363b6c3722Schristos
2373b6c3722Schristos      Identity, hostname is returned if "".
2383b6c3722Schristos
2393b6c3722Schristos   .. attribute:: version
2403b6c3722Schristos
2413b6c3722Schristos      Version, package version returned if "".
2423b6c3722Schristos
2433b6c3722Schristos   .. attribute:: module_conf
2443b6c3722Schristos
2453b6c3722Schristos      The module configuration string.
2463b6c3722Schristos
2473b6c3722Schristos   .. attribute:: trust_anchor_file_list
2483b6c3722Schristos
2493b6c3722Schristos      Files with trusted DS and DNSKEYs in zonefile format, list.
2503b6c3722Schristos
2513b6c3722Schristos   .. attribute:: trust_anchor_list
2523b6c3722Schristos
2533b6c3722Schristos      List of trustanchor keys, linked list.
2543b6c3722Schristos
2553b6c3722Schristos   .. attribute:: trusted_keys_file_list
2563b6c3722Schristos
2573b6c3722Schristos      Files with trusted DNSKEYs in named.conf format, list.
2583b6c3722Schristos
2593b6c3722Schristos   .. attribute:: max_ttl
2603b6c3722Schristos
2613b6c3722Schristos      The number of seconds maximal TTL used for RRsets and messages.
2623b6c3722Schristos
2633b6c3722Schristos   .. attribute:: val_date_override
2643b6c3722Schristos
2653b6c3722Schristos      If not 0, this value is the validation date for RRSIGs.
2663b6c3722Schristos
2673b6c3722Schristos   .. attribute:: bogus_ttl
2683b6c3722Schristos
2693b6c3722Schristos      This value sets the number of seconds before revalidating bogus.
2703b6c3722Schristos
2713b6c3722Schristos   .. attribute:: val_clean_additional
2723b6c3722Schristos
2733b6c3722Schristos      Should validator clean additional section for secure msgs.
2743b6c3722Schristos
2753b6c3722Schristos   .. attribute:: val_permissive_mode
2763b6c3722Schristos
2773b6c3722Schristos      Should validator allow bogus messages to go through.
2783b6c3722Schristos
2793b6c3722Schristos   .. attribute:: val_nsec3_key_iterations
2803b6c3722Schristos
2813b6c3722Schristos      Nsec3 maximum iterations per key size, string.
2823b6c3722Schristos
2833b6c3722Schristos   .. attribute:: key_cache_size
2843b6c3722Schristos
2853b6c3722Schristos      Size of the key cache.
2863b6c3722Schristos
2873b6c3722Schristos   .. attribute:: key_cache_slabs
2883b6c3722Schristos
2893b6c3722Schristos      Slabs in the key cache.
2903b6c3722Schristos
2913b6c3722Schristos   .. attribute:: neg_cache_size
2923b6c3722Schristos
2933b6c3722Schristos      Size of the neg cache.
2943b6c3722Schristos
2953b6c3722Schristos
2963b6c3722Schristos   .. attribute:: local_zones
2973b6c3722Schristos
2983b6c3722Schristos      Local zones config.
2993b6c3722Schristos
3003b6c3722Schristos   .. attribute:: local_zones_nodefault
3013b6c3722Schristos
3023b6c3722Schristos      Local zones nodefault list.
3033b6c3722Schristos
3043b6c3722Schristos   .. attribute:: local_data
3053b6c3722Schristos
3063b6c3722Schristos      Local data RRs configured.
3073b6c3722Schristos
3083b6c3722Schristos   .. attribute:: remote_control_enable
3093b6c3722Schristos
3103b6c3722Schristos      Remote control section. enable toggle.
3113b6c3722Schristos
3123b6c3722Schristos   .. attribute:: control_ifs
3133b6c3722Schristos
3143b6c3722Schristos      The interfaces the remote control should listen on.
3153b6c3722Schristos
3163b6c3722Schristos   .. attribute:: control_port
3173b6c3722Schristos
3183b6c3722Schristos      Port number for the control port.
3193b6c3722Schristos
3203b6c3722Schristos   .. attribute:: server_key_file
3213b6c3722Schristos
3223b6c3722Schristos      Private key file for server.
3233b6c3722Schristos
3243b6c3722Schristos   .. attribute:: server_cert_file
3253b6c3722Schristos
3263b6c3722Schristos      Certificate file for server.
3273b6c3722Schristos
3283b6c3722Schristos   .. attribute:: control_key_file
3293b6c3722Schristos
3303b6c3722Schristos      Private key file for unbound-control.
3313b6c3722Schristos
3323b6c3722Schristos   .. attribute:: control_cert_file
3333b6c3722Schristos
3343b6c3722Schristos      Certificate file for unbound-control.
3353b6c3722Schristos
3363b6c3722Schristos   .. attribute:: do_daemonize
3373b6c3722Schristos
3383b6c3722Schristos      Daemonize, i.e. fork into the background.
3393b6c3722Schristos
3403b6c3722Schristos   .. attribute:: python_script
3413b6c3722Schristos
342*91f7d55fSchristos      Linked list of Python script files.
343*91f7d55fSchristos      Deprecated; `mod_env['script']` should be used instead.
344