1 Configuration interface
2 =======================
4 Currently passed to Python module in init(module_id, cfg).
11 This class provides these data attributes:
13 .. attribute:: verbosity
15 Verbosity level as specified in the config file.
17 .. attribute:: stat_interval
19 Statistics interval (in seconds).
21 .. attribute:: stat_cumulative
23 If false, statistics values are reset after printing them.
25 .. attribute:: stat_extended
27 If true, the statistics are kept in greater detail.
29 .. attribute:: num_threads
31 Number of threads to create.
35 Port on which queries are answered.
53 .. attribute:: outgoing_num_ports
55 Outgoing port range number of ports (per thread).
57 .. attribute:: outgoing_num_tcp
59 Number of outgoing tcp buffers per (per thread).
61 .. attribute:: incoming_num_tcp
63 Number of incoming tcp buffers per (per thread).
65 .. attribute:: outgoing_avail_ports
67 Allowed udp port numbers, array with 0 if not allowed.
69 .. attribute:: msg_buffer_size
71 Number of bytes buffer size for DNS messages.
73 .. attribute:: msg_cache_size
75 Size of the message cache.
77 .. attribute:: msg_cache_slabs
79 Slabs in the message cache.
81 .. attribute:: num_queries_per_thread
83 Number of queries every thread can service.
85 .. attribute:: jostle_time
87 Number of msec to wait before items can be jostled out.
89 .. attribute:: rrset_cache_size
91 Size of the rrset cache.
93 .. attribute:: rrset_cache_slabs
95 Slabs in the rrset cache.
97 .. attribute:: host_ttl
99 Host cache ttl in seconds.
101 .. attribute:: lame_ttl
103 Host is lame for a zone ttl, in seconds.
105 .. attribute:: infra_cache_slabs
107 Number of slabs in the infra host cache.
109 .. attribute:: infra_cache_numhosts
111 Max number of hosts in the infra cache.
113 .. attribute:: infra_cache_lame_size
115 Max size of lame zones per host in the infra cache.
117 .. attribute:: target_fetch_policy
119 The target fetch policy for the iterator.
121 .. attribute:: if_automatic
123 Automatic interface for incoming messages. Uses ipv6 remapping,
124 and recvmsg/sendmsg ancillary data to detect interfaces, boolean.
126 .. attribute:: num_ifs
128 Number of interfaces to open. If 0 default all interfaces.
132 Interface description strings (IP addresses).
134 .. attribute:: num_out_ifs
136 Number of outgoing interfaces to open.
137 If 0 default all interfaces.
139 .. attribute:: out_ifs
141 Outgoing interface description strings (IP addresses).
143 .. attribute:: root_hints
149 The stub definitions, linked list.
151 .. attribute:: forwards
153 The forward zone definitions, linked list.
155 .. attribute:: donotqueryaddrs
157 List of donotquery addresses, linked list.
161 List of access control entries, linked list.
163 .. attribute:: donotquery_localhost
165 Use default localhost donotqueryaddr entries.
167 .. attribute:: harden_short_bufsize
169 Harden against very small edns buffer sizes.
171 .. attribute:: harden_large_queries
173 Harden against very large query sizes.
175 .. attribute:: harden_glue
177 Harden against spoofed glue (out of zone data).
179 .. attribute:: harden_dnssec_stripped
181 Harden against receiving no DNSSEC data for trust anchor.
183 .. attribute:: harden_referral_path
185 Harden the referral path, query for NS,A,AAAA and validate.
187 .. attribute:: use_caps_bits_for_id
189 Use 0x20 bits in query as random ID bits.
191 .. attribute:: private_address
193 Strip away these private addrs from answers, no DNS Rebinding.
195 .. attribute:: private_domain
197 Allow domain (and subdomains) to use private address space.
199 .. attribute:: unwanted_threshold
201 What threshold for unwanted action.
203 .. attribute:: chrootdir
205 Chrootdir, if not "" or chroot will be done.
207 .. attribute:: username
209 Username to change to, if not "".
211 .. attribute:: directory
215 .. attribute:: logfile
219 .. attribute:: pidfile
221 Pidfile to write pid to.
223 .. attribute:: use_syslog
225 Should log messages be sent to syslogd.
227 .. attribute:: hide_identity
229 Do not report identity (id.server, hostname.bind).
231 .. attribute:: hide_version
233 Do not report version (version.server, version.bind).
235 .. attribute:: identity
237 Identity, hostname is returned if "".
239 .. attribute:: version
241 Version, package version returned if "".
243 .. attribute:: module_conf
245 The module configuration string.
247 .. attribute:: trust_anchor_file_list
249 Files with trusted DS and DNSKEYs in zonefile format, list.
251 .. attribute:: trust_anchor_list
253 List of trustanchor keys, linked list.
255 .. attribute:: trusted_keys_file_list
257 Files with trusted DNSKEYs in named.conf format, list.
259 .. attribute:: dlv_anchor_file
263 .. attribute:: dlv_anchor_list
267 .. attribute:: max_ttl
269 The number of seconds maximal TTL used for RRsets and messages.
271 .. attribute:: val_date_override
273 If not 0, this value is the validation date for RRSIGs.
275 .. attribute:: bogus_ttl
277 This value sets the number of seconds before revalidating bogus.
279 .. attribute:: val_clean_additional
281 Should validator clean additional section for secure msgs.
283 .. attribute:: val_permissive_mode
285 Should validator allow bogus messages to go through.
287 .. attribute:: val_nsec3_key_iterations
289 Nsec3 maximum iterations per key size, string.
291 .. attribute:: key_cache_size
293 Size of the key cache.
295 .. attribute:: key_cache_slabs
297 Slabs in the key cache.
299 .. attribute:: neg_cache_size
301 Size of the neg cache.
304 .. attribute:: local_zones
308 .. attribute:: local_zones_nodefault
310 Local zones nodefault list.
312 .. attribute:: local_data
314 Local data RRs configged.
316 .. attribute:: remote_control_enable
318 Remote control section. enable toggle.
320 .. attribute:: control_ifs
322 The interfaces the remote control should listen on.
324 .. attribute:: control_port
326 Port number for the control port.
328 .. attribute:: server_key_file
330 Private key file for server.
332 .. attribute:: server_cert_file
334 Certificate file for server.
336 .. attribute:: control_key_file
338 Private key file for unbound-control.
340 .. attribute:: control_cert_file
342 Certificate file for unbound-control.
344 .. attribute:: do_daemonize
346 Daemonize, i.e. fork into the background.
348 .. attribute:: python_script