#include <config_file.h>
Data Fields | |
int | verbosity |
verbosity level as specified in the config file | |
int | stat_interval |
statistics interval (in seconds) | |
int | stat_cumulative |
if false, statistics values are reset after printing them | |
int | stat_extended |
if true, the statistics are kept in greater detail | |
int | num_threads |
number of threads to create | |
int | port |
port on which queries are answered. | |
int | do_ip4 |
do ip4 query support. | |
int | do_ip6 |
do ip6 query support. | |
int | do_udp |
do udp query support. | |
int | do_tcp |
do tcp query support. | |
int | outgoing_num_ports |
outgoing port range number of ports (per thread) | |
size_t | outgoing_num_tcp |
number of outgoing tcp buffers per (per thread) | |
size_t | incoming_num_tcp |
number of incoming tcp buffers per (per thread) | |
int * | outgoing_avail_ports |
allowed udp port numbers, array with 0 if not allowed | |
size_t | msg_buffer_size |
number of bytes buffer size for DNS messages | |
size_t | msg_cache_size |
size of the message cache | |
size_t | msg_cache_slabs |
slabs in the message cache. | |
size_t | num_queries_per_thread |
number of queries every thread can service | |
size_t | jostle_time |
number of msec to wait before items can be jostled out | |
size_t | rrset_cache_size |
size of the rrset cache | |
size_t | rrset_cache_slabs |
slabs in the rrset cache | |
int | host_ttl |
host cache ttl in seconds | |
int | lame_ttl |
host is lame for a zone ttl, in seconds | |
size_t | infra_cache_slabs |
number of slabs in the infra host cache | |
size_t | infra_cache_numhosts |
max number of hosts in the infra cache | |
size_t | infra_cache_lame_size |
max size of lame zones per host in the infra cache | |
char * | target_fetch_policy |
the target fetch policy for the iterator | |
int | if_automatic |
automatic interface for incoming messages. | |
int | num_ifs |
number of interfaces to open. | |
char ** | ifs |
interface description strings (IP addresses) | |
int | num_out_ifs |
number of outgoing interfaces to open. | |
char ** | out_ifs |
outgoing interface description strings (IP addresses) | |
struct config_strlist * | root_hints |
the root hints | |
struct config_stub * | stubs |
the stub definitions, linked list | |
struct config_stub * | forwards |
the forward zone definitions, linked list | |
struct config_strlist * | donotqueryaddrs |
list of donotquery addresses, linked list | |
struct config_str2list * | acls |
list of access control entries, linked list | |
int | donotquery_localhost |
use default localhost donotqueryaddr entries | |
int | harden_short_bufsize |
harden against very small edns buffer sizes | |
int | harden_large_queries |
harden against very large query sizes | |
int | harden_glue |
harden against spoofed glue (out of zone data) | |
int | harden_dnssec_stripped |
harden against receiving no DNSSEC data for trust anchor | |
int | harden_referral_path |
harden the referral path, query for NS,A,AAAA and validate | |
int | use_caps_bits_for_id |
use 0x20 bits in query as random ID bits | |
struct config_strlist * | private_address |
strip away these private addrs from answers, no DNS Rebinding | |
struct config_strlist * | private_domain |
allow domain (and subdomains) to use private address space | |
size_t | unwanted_threshold |
what threshold for unwanted action. | |
char * | chrootdir |
chrootdir, if not "" or chroot will be done | |
char * | username |
username to change to, if not "". | |
char * | directory |
working directory | |
char * | logfile |
filename to log to. | |
char * | pidfile |
pidfile to write pid to. | |
int | use_syslog |
should log messages be sent to syslogd | |
int | hide_identity |
do not report identity (id.server, hostname.bind) | |
int | hide_version |
do not report version (version.server, version.bind) | |
char * | identity |
identity, hostname is returned if "". | |
char * | version |
version, package version returned if "". | |
char * | module_conf |
the module configuration string | |
struct config_strlist * | trust_anchor_file_list |
files with trusted DS and DNSKEYs in zonefile format, list | |
struct config_strlist * | trust_anchor_list |
list of trustanchor keys, linked list | |
struct config_strlist * | trusted_keys_file_list |
files with trusted DNSKEYs in named.conf format, list | |
char * | dlv_anchor_file |
DLV anchor file. | |
struct config_strlist * | dlv_anchor_list |
DLV anchor inline. | |
int | max_ttl |
the number of seconds maximal TTL used for RRsets and messages | |
int32_t | val_date_override |
if not 0, this value is the validation date for RRSIGs | |
int | bogus_ttl |
this value sets the number of seconds before revalidating bogus | |
int | val_clean_additional |
should validator clean additional section for secure msgs | |
int | val_permissive_mode |
should validator allow bogus messages to go through | |
char * | val_nsec3_key_iterations |
nsec3 maximum iterations per key size, string | |
size_t | key_cache_size |
size of the key cache | |
size_t | key_cache_slabs |
slabs in the key cache. | |
size_t | neg_cache_size |
size of the neg cache | |
struct config_str2list * | local_zones |
local zones config | |
struct config_strlist * | local_zones_nodefault |
local zones nodefault list | |
struct config_strlist * | local_data |
local data RRs configged | |
int | remote_control_enable |
remote control section. | |
struct config_strlist * | control_ifs |
the interfaces the remote control should listen on | |
int | control_port |
port number for the control port | |
char * | server_key_file |
private key file for server | |
char * | server_cert_file |
certificate file for server | |
char * | control_key_file |
private key file for unbound-control | |
char * | control_cert_file |
certificate file for unbound-control | |
int | do_daemonize |
daemonize, i.e. |
Strings are malloced.
port on which queries are answered.
Referenced by config_create(), daemon_open_shared_ports(), and listening_ports_open().
do ip4 query support.
Referenced by checkrlimits(), config_create(), config_set_option(), daemon_remote_open_ports(), hints_apply_cfg(), libworker_setup(), listening_ports_open(), morechecks(), and worker_init().
do ip6 query support.
Referenced by acl_list_apply_cfg(), checkrlimits(), config_create(), config_set_option(), daemon_remote_open_ports(), donotq_apply_cfg(), hints_apply_cfg(), iter_apply_cfg(), libworker_setup(), listening_ports_open(), morechecks(), and worker_init().
do udp query support.
Referenced by checkrlimits(), config_create(), config_set_option(), listening_ports_open(), and morechecks().
do tcp query support.
Referenced by checkrlimits(), config_create(), config_set_option(), libworker_setup(), listening_ports_open(), morechecks(), and worker_init().
size_t config_file::msg_cache_slabs |
slabs in the message cache.
Referenced by apply_settings(), config_create(), config_create_forlib(), config_set_option(), and context_finalize().
automatic interface for incoming messages.
Uses ipv6 remapping, and recvmsg/sendmsg ancillary data to detect interfaces, boolean
Referenced by checkrlimits(), config_create(), and listening_ports_open().
number of interfaces to open.
If 0 default all interfaces.
Referenced by checkrlimits(), config_create(), config_delete(), interfacechecks(), and listening_ports_open().
number of outgoing interfaces to open.
If 0 default all interfaces.
Referenced by config_create(), config_delete(), interfacechecks(), libworker_setup(), and worker_init().
what threshold for unwanted action.
Referenced by config_create(), config_set_option(), libworker_setup(), and worker_init().
char* config_file::username |
username to change to, if not "".
Referenced by config_create(), config_delete(), morechecks(), and perform_setup().
char* config_file::logfile |
filename to log to.
Referenced by config_create(), config_delete(), config_set_option(), context_finalize(), morechecks(), perform_setup(), and run_daemon().
char* config_file::pidfile |
pidfile to write pid to.
Referenced by config_create(), config_delete(), morechecks(), and perform_setup().
char* config_file::identity |
identity, hostname is returned if "".
Referenced by answer_chaos(), config_create(), and config_delete().
char* config_file::version |
version, package version returned if "".
Referenced by answer_chaos(), config_create(), and config_delete().
size_t config_file::key_cache_slabs |
slabs in the key cache.
Referenced by config_create(), config_create_forlib(), config_set_option(), and key_cache_create().
remote control section.
enable toggle.
Referenced by config_create(), config_set_option(), daemon_open_shared_ports(), daemon_remote_create(), daemon_remote_open_ports(), go(), and morechecks().