unbound 0.1
config_file Struct Reference

The configuration options. More...

#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 stat_inhibit_zero
 if true, inhibits a lot of =0 lines from the extended stats output
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_nat64
 do nat64 on queries
int prefer_ip4
 prefer ip4 upstream queries.
int prefer_ip6
 prefer ip6 upstream queries.
int do_udp
 do udp query support.
int do_tcp
 do tcp query support.
size_t max_reuse_tcp_queries
 max number of queries on a reuse connection.
int tcp_reuse_timeout
 timeout for REUSE entries in milliseconds.
int tcp_auth_query_timeout
 timeout in milliseconds for TCP queries to auth servers.
int tcp_upstream
 tcp upstream queries (no UDP upstream queries)
int udp_upstream_without_downstream
 udp upstream enabled when no UDP downstream is enabled (do_udp no)
int tcp_mss
 maximum segment size of tcp socket which queries are answered
int outgoing_tcp_mss
 maximum segment size of tcp socket for outgoing queries
int tcp_idle_timeout
 tcp idle timeout, in msec
int do_tcp_keepalive
 do edns tcp keepalive
int tcp_keepalive_timeout
 tcp keepalive timeout, in msec
int sock_queue_timeout
 timeout of packets sitting in the socket queue
struct config_strlist * proxy_protocol_port
 proxy protocol ports
struct config_strlist * allow_proxy
 the allow proxy list that are allowed proxy-protocol use
char * ssl_service_key
 private key file for dnstcp-ssl service (enabled if not NULL)
char * ssl_service_pem
 public key file for dnstcp-ssl service
int ssl_port
 port on which to provide ssl service
int ssl_upstream
 if outgoing tcp connections use SSL
char * tls_cert_bundle
 cert bundle for outgoing connections
int tls_win_cert
 should the system certificate store get added to the cert bundle
struct config_strlist * tls_additional_port
 additional tls ports
struct config_strlist_head tls_session_ticket_keys
 secret key used to encrypt and decrypt TLS session ticket
char * tls_ciphers
 TLS ciphers.
char * tls_ciphersuites
 TLS chiphersuites (TLSv1.3).
int tls_use_sni
 if SNI is to be used
char * tls_protocols
 TLS protocols.
int https_port
 port on which to provide DNS over HTTPS service
char * http_endpoint
 endpoint for HTTP service
uint32_t http_max_streams
 MAX_CONCURRENT_STREAMS HTTP/2 setting.
size_t http_query_buffer_size
 maximum size of all HTTP2 query buffers combined.
size_t http_response_buffer_size
 maximum size of all HTTP2 response buffers combined.
int http_nodelay
 set TCP_NODELAY option for http sockets
int http_notls_downstream
 Disable TLS for http sockets downstream.
int quic_port
 port on which to provide DNS over QUIC service
size_t quic_size
 size of the quic data, max bytes
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 edns_buffer_size
 EDNS buffer size to use.
size_t stream_wait_size
 size of the stream wait buffers, max
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
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
int infra_cache_min_rtt
 min value for infra cache rtt (min retransmit timeout)
int infra_cache_max_rtt
 max value for infra cache rtt (max retransmit timeout)
int infra_keep_probing
 keep probing hosts that are down
int delay_close
 delay close of udp-timeouted ports, if 0 no delayclose.
int udp_connect
 udp_connect enable uses UDP connect to mitigate ICMP side channel
char * target_fetch_policy
 the target fetch policy for the iterator
int fast_server_permil
 percent*10, how many times in 1000 to pick from the fastest destinations
size_t fast_server_num
 number of fastest server to select from
int if_automatic
 automatic interface for incoming messages.
char * if_automatic_ports
 extra ports to open if if_automatic enabled, or NULL for default
size_t so_rcvbuf
 SO_RCVBUF size to set on port 53 UDP socket.
size_t so_sndbuf
 SO_SNDBUF size to set on port 53 UDP socket.
int so_reuseport
 SO_REUSEPORT requested on port 53 sockets.
int ip_transparent
 IP_TRANSPARENT socket option requested on port 53 sockets.
int ip_freebind
 IP_FREEBIND socket option request on port 53 sockets.
int ip_dscp
 IP_TOS socket option requested on port 53 sockets.
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_auth * auths
 the auth zone definitions, linked list
struct config_view * views
 the views 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
struct config_str2list * tcp_connection_limits
 list of tcp connection limitss, linked list
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_unverified_glue
 harden against unverified glue
int harden_dnssec_stripped
 harden against receiving no DNSSEC data for trust anchor
int harden_below_nxdomain
 harden against queries that fall under known nxdomain names
int harden_referral_path
 harden the referral path, query for NS,A,AAAA and validate
int harden_algo_downgrade
 harden against algorithm downgrade
int harden_unknown_additional
 harden against unknown records in the authority section and in the additional section
int harden_cname_follow
 harden to follow cname redirections
int use_caps_bits_for_id
 use 0x20 bits in query as random ID bits
struct config_strlist * caps_whitelist
 0x20 whitelist, domains that do not use capsforid
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.
int max_ttl
 the number of seconds maximal TTL used for RRsets and messages
int min_ttl
 the number of seconds minimum TTL used for RRsets and messages
int max_negative_ttl
 the number of seconds maximal negative TTL for SOA in auth
int min_negative_ttl
 the number of seconds minimal negative TTL for SOA in auth
int prefetch
 if prefetching of messages should be performed.
int prefetch_key
 if prefetching of DNSKEYs should be performed.
int deny_any
 deny queries of type ANY with an empty answer
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 log_time_ascii
 log timestamp in ascii UTC
int log_time_iso
 log timestamp in ISO8601 format
int log_queries
 log queries with one line per query
int log_replies
 log replies with one line per reply
int log_tag_queryreply
 tag log_queries and log_replies for filtering
int log_local_actions
 log every local-zone hit
int log_servfail
 log servfails with a reason
char * log_identity
 log identity to report
int log_destaddr
 log dest addr for log_replies
int log_thread_id
 log linux thread ID
int hide_identity
 do not report identity (id.server, hostname.bind)
int hide_version
 do not report version (version.server, version.bind)
int hide_trustanchor
 do not report trustanchor (trustanchor.unbound)
int hide_http_user_agent
 do not report the User-Agent HTTP header
char * identity
 identity, hostname is returned if "".
char * version
 version, package version returned if "".
char * http_user_agent
 User-Agent for HTTP header.
char * nsid_cfg_str
 nsid
uint8_t * nsid
uint16_t nsid_len
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 * auto_trust_anchor_file_list
 files with 5011 autotrust tracked keys
struct config_strlist * trusted_keys_file_list
 files with trusted DNSKEYs in named.conf format, list
struct config_strlist * domain_insecure
 insecure domain list
int trust_anchor_signaling
 send key tag query
int root_key_sentinel
 enable root key sentinel
int32_t val_date_override
 if not 0, this value is the validation date for RRSIGs
int32_t val_sig_skew_min
 the minimum for signature clock skew
int32_t val_sig_skew_max
 the maximum for signature clock skew
int32_t val_max_restart
 max number of query restarts, number of IPs to probe
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_log_level
 log bogus messages by the validator
int val_log_squelch
 squelch val_log_level to log - this is library goes to callback
int val_permissive_mode
 should validator allow bogus messages to go through
int aggressive_nsec
 use cached NSEC records to synthesise (negative) answers
int ignore_cd
 ignore the CD flag in incoming queries and refuse them bogus data
int disable_edns_do
 disable EDNS DO flag in outgoing requests
int serve_expired
 serve expired entries and prefetch them
int serve_expired_ttl
 serve expired entries until TTL after expiration
int serve_expired_ttl_reset
 reset serve expired TTL after failed update attempt
int serve_expired_reply_ttl
 TTL for the serve expired replies.
int serve_expired_client_timeout
 serve expired entries only after trying to update the entries and this timeout (in milliseconds) is reached
int serve_original_ttl
 serve original TTLs rather than decrementing ones
char * val_nsec3_key_iterations
 nsec3 maximum iterations per key size, string
int zonemd_permissive_mode
 if zonemd failures are permitted, only logged
unsigned int add_holddown
 autotrust add holddown time, in seconds
unsigned int del_holddown
 autotrust del holddown time, in seconds
unsigned int keep_missing
 autotrust keep_missing time, in seconds.
int permit_small_holddown
 permit small holddown values, allowing 5011 rollover very fast
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
int local_zones_disable_default
 do not add any default local zone
struct config_strlist * local_data
 local data RRs configured
struct config_str3list * local_zone_overrides
 local zone override types per netblock
int unblock_lan_zones
 unblock lan zones (reverse lookups for AS112 zones)
int insecure_lan_zones
 insecure lan zones (don't validate AS112 zones)
struct config_strbytelist * local_zone_tags
 list of zonename, tagbitlist
struct config_strbytelist * acl_tags
 list of aclname, tagbitlist
struct config_str3list * acl_tag_actions
 list of aclname, tagname, localzonetype
struct config_str3list * acl_tag_datas
 list of aclname, tagname, redirectdata
struct config_str2list * acl_view
 list of aclname, view
struct config_str2list * interface_actions
 list of interface action entries, linked list
struct config_strbytelist * interface_tags
 list of interface, tagbitlist
struct config_str3list * interface_tag_actions
 list of interface, tagname, localzonetype
struct config_str3list * interface_tag_datas
 list of interface, tagname, redirectdata
struct config_str2list * interface_view
 list of interface, view
struct config_strbytelist * respip_tags
 list of IP-netblock, tagbitlist
struct config_str2list * respip_actions
 list of response-driven access control entries, linked list
struct config_str2list * respip_data
 RRs configured for response-driven access controls.
char ** tagname
 tag list, array with tagname[i] is malloced string
int num_tags
 number of items in the taglist
int remote_control_enable
 remote control section.
struct config_strlist_head control_ifs
 the interfaces the remote control should listen on
int control_use_cert
 if the use-cert option is set
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
struct config_strlist * python_script
 Python script file.
struct config_strlist * dynlib_file
 Dynamic library file.
int use_systemd
 Use systemd socket activation.
int do_daemonize
 daemonize, i.e.
int minimal_responses
int rrset_roundrobin
int unknown_server_time_limit
int discard_timeout
 Wait time to drop recursion replies.
int wait_limit
 Wait limit for number of replies per IP address.
int wait_limit_cookie
 Wait limit for number of replies per IP address with cookie.
struct config_str2list * wait_limit_netblock
 wait limit per netblock
struct config_str2list * wait_limit_cookie_netblock
 wait limit with cookie per netblock
size_t max_udp_size
char * dns64_prefix
int dns64_synthall
struct config_strlist * dns64_ignore_aaaa
 ignore AAAAs for these domain names and use A record anyway
char * nat64_prefix
int dnstap
 true to enable dnstap support
int dnstap_bidirectional
 using bidirectional frame streams if true
char * dnstap_socket_path
 dnstap socket path
char * dnstap_ip
 dnstap IP
int dnstap_tls
 dnstap TLS enable
char * dnstap_tls_server_name
 dnstap tls server authentication name
char * dnstap_tls_cert_bundle
 dnstap server cert bundle
char * dnstap_tls_client_key_file
 dnstap client key for client authentication
char * dnstap_tls_client_cert_file
 dnstap client cert for client authentication
int dnstap_send_identity
 true to send "identity" via dnstap
int dnstap_send_version
 true to send "version" via dnstap
char * dnstap_identity
 dnstap "identity", hostname is used if "".
char * dnstap_version
 dnstap "version", package version is used if "".
int dnstap_sample_rate
 dnstap sample rate
int dnstap_log_resolver_query_messages
 true to log dnstap RESOLVER_QUERY message events
int dnstap_log_resolver_response_messages
 true to log dnstap RESOLVER_RESPONSE message events
int dnstap_log_client_query_messages
 true to log dnstap CLIENT_QUERY message events
int dnstap_log_client_response_messages
 true to log dnstap CLIENT_RESPONSE message events
int dnstap_log_forwarder_query_messages
 true to log dnstap FORWARDER_QUERY message events
int dnstap_log_forwarder_response_messages
 true to log dnstap FORWARDER_RESPONSE message events
int disable_dnssec_lame_check
 true to disable DNSSEC lameness check in iterator
int ip_ratelimit
 ratelimit for ip addresses.
int ip_ratelimit_cookie
 ratelimit for ip addresses with a valid DNS Cookie.
size_t ip_ratelimit_slabs
 number of slabs for ip_ratelimit cache
size_t ip_ratelimit_size
 memory size in bytes for ip_ratelimit cache
int ip_ratelimit_factor
 ip_ratelimit factor, 0 blocks all, 10 allows 1/10 of traffic
int ip_ratelimit_backoff
 ratelimit backoff, when on, if the limit is reached it is considered an attack and it backs off until 'demand' decreases over the RATE_WINDOW.
int ratelimit
 ratelimit for domains.
size_t ratelimit_slabs
 number of slabs for ratelimit cache
size_t ratelimit_size
 memory size in bytes for ratelimit cache
struct config_str2list * ratelimit_for_domain
 ratelimits for domain (exact match)
struct config_str2list * ratelimit_below_domain
 ratelimits below domain
int ratelimit_factor
 ratelimit factor, 0 blocks all, 10 allows 1/10 of traffic
int ratelimit_backoff
 ratelimit backoff, when on, if the limit is reached it is considered an attack and it backs off until 'demand' decreases over the RATE_WINDOW.
int outbound_msg_retry
 number of retries on outgoing queries
int max_sent_count
 max sent queries per qstate; resets on query restarts (e.g., CNAMES) and referrals
int max_query_restarts
 max number of query restarts; determines max length of CNAME chain
int qname_minimisation
 minimise outgoing QNAME and hide original QTYPE if possible
int qname_minimisation_strict
 minimise QNAME in strict mode, minimise according to RFC.
int shm_enable
 SHM data - true if shm is enabled.
int shm_key
 SHM data - key for the shm.
struct config_str2list * edns_client_strings
 list of EDNS client string entries, linked list
uint16_t edns_client_string_opcode
 EDNS opcode to use for EDNS client strings.
int dnscrypt
 DNSCrypt.
int dnscrypt_port
 port on which to provide dnscrypt service
char * dnscrypt_provider
 provider name 2.dnscrypt-cert.example.com
struct config_strlist * dnscrypt_secret_key
 dnscrypt secret keys 1.key
struct config_strlist * dnscrypt_provider_cert
 dnscrypt provider certs 1.cert
struct config_strlist * dnscrypt_provider_cert_rotated
 dnscrypt provider certs 1.cert which have been rotated and should not be advertised through DNS's providername TXT record but are required to be able to handle existing traffic using the old cert.
size_t dnscrypt_shared_secret_cache_size
 memory size in bytes for dnscrypt shared secrets cache
size_t dnscrypt_shared_secret_cache_slabs
 number of slabs for dnscrypt shared secrets cache
size_t dnscrypt_nonce_cache_size
 memory size in bytes for dnscrypt nonces cache
size_t dnscrypt_nonce_cache_slabs
 number of slabs for dnscrypt nonces cache
int pad_responses
 EDNS padding according to RFC7830 and RFC8467.
size_t pad_responses_block_size
 block size with which to pad encrypted responses (default: 468)
int pad_queries
 true to enable padding of queries (default: on)
size_t pad_queries_block_size
 block size with which to pad encrypted queries (default: 128)
int do_answer_cookie
 IPsec module.
uint8_t cookie_secret [40]
 cookie secret
size_t cookie_secret_len
 cookie secret length
char * cookie_secret_file
 path to cookie secret store
int ede
 respond with Extended DNS Errors (RFC8914)
int ede_serve_expired
 serve EDE code 3 - Stale Answer (RFC8914) for expired entries
int dns_error_reporting
 send DNS Error Reports to upstream reporting agent (RFC9567)
size_t iter_scrub_ns
 limit on NS RRs in RRset for the iterator scrubber.
int iter_scrub_cname
 limit on CNAME, DNAME RRs in answer for the iterator scrubber.
int iter_scrub_rrsig
 limit on RRSIGs for an RRset for the iterator scrubber.
int max_global_quota
 limit on upstream queries for an incoming query and subqueries.
int val_validation_attempts
 limit on validator validation attempts.
int val_hash_attempts
 limit on validator hash attempts.
int iter_scrub_promiscuous
 Should the iterator scrub promiscuous NS rrsets, from positive answers.
size_t iter_scrub_glue_count
 limit on number of glue RRs in a response.
int delegpt_max_addr
 Max number of addresses in a delegation point.
int delegpt_max_ns
 Max number of nameserver names in a delagation point.

Detailed Description

The configuration options.

Strings are malloced.

Field Documentation

◆ verbosity

int config_file::verbosity

verbosity level as specified in the config file

Referenced by apply_settings(), config_create(), config_create_forlib(), context_finalize(), morechecks(), service_init(), and ub_ctx_debuglevel().

◆ stat_interval

int config_file::stat_interval

statistics interval (in seconds)

Referenced by config_create(), config_set_option(), daemon_fork(), worker_init(), and worker_restart_timer().

◆ stat_cumulative

int config_file::stat_cumulative

◆ stat_extended

int config_file::stat_extended

if true, the statistics are kept in greater detail

Referenced by config_create(), config_set_option(), do_stats(), mesh_query_done(), mesh_send_reply(), mesh_serve_expired_callback(), and server_stats_init().

◆ stat_inhibit_zero

int config_file::stat_inhibit_zero

if true, inhibits a lot of =0 lines from the extended stats output

Referenced by config_create(), config_set_option(), and do_stats().

◆ num_threads

◆ port

◆ do_ip4

◆ do_ip6

◆ do_nat64

int config_file::do_nat64

do nat64 on queries

Referenced by fr_check_nopause_compat_cfg(), and nat64_apply_cfg().

◆ prefer_ip4

int config_file::prefer_ip4

prefer ip4 upstream queries.

Referenced by config_set_option(), iter_filter_order(), and morechecks().

◆ prefer_ip6

int config_file::prefer_ip6

prefer ip6 upstream queries.

Referenced by config_set_option(), iter_filter_order(), and morechecks().

◆ do_udp

◆ do_tcp

◆ max_reuse_tcp_queries

size_t config_file::max_reuse_tcp_queries

max number of queries on a reuse connection.

Referenced by config_create(), config_set_option(), fr_worker_pickup_outside_network(), libworker_setup(), and worker_init().

◆ tcp_reuse_timeout

int config_file::tcp_reuse_timeout

timeout for REUSE entries in milliseconds.

Referenced by config_create(), config_set_option(), fr_worker_pickup_outside_network(), libworker_setup(), and worker_init().

◆ tcp_auth_query_timeout

int config_file::tcp_auth_query_timeout

timeout in milliseconds for TCP queries to auth servers.

Referenced by config_create(), config_set_option(), fr_worker_pickup_outside_network(), libworker_setup(), and worker_init().

◆ tcp_upstream

int config_file::tcp_upstream

tcp upstream queries (no UDP upstream queries)

Referenced by config_create(), config_set_option(), and processQueryTargets().

◆ udp_upstream_without_downstream

int config_file::udp_upstream_without_downstream

udp upstream enabled when no UDP downstream is enabled (do_udp no)

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), libworker_setup(), and worker_init().

◆ tcp_mss

int config_file::tcp_mss

maximum segment size of tcp socket which queries are answered

Referenced by config_create(), config_set_option(), and listening_ports_open().

◆ outgoing_tcp_mss

int config_file::outgoing_tcp_mss

maximum segment size of tcp socket for outgoing queries

Referenced by config_create(), config_set_option(), fr_worker_pickup_outside_network(), libworker_setup(), and worker_init().

◆ tcp_idle_timeout

int config_file::tcp_idle_timeout

tcp idle timeout, in msec

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), and worker_init().

◆ do_tcp_keepalive

int config_file::do_tcp_keepalive

◆ tcp_keepalive_timeout

int config_file::tcp_keepalive_timeout

tcp keepalive timeout, in msec

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), and worker_init().

◆ sock_queue_timeout

int config_file::sock_queue_timeout

timeout of packets sitting in the socket queue

Referenced by config_create(), config_set_option(), listening_ports_open(), and worker_handle_request().

◆ proxy_protocol_port

struct config_strlist* config_file::proxy_protocol_port

◆ allow_proxy

struct config_strlist* config_file::allow_proxy

the allow proxy list that are allowed proxy-protocol use

Referenced by allow_proxy_tree_apply_cfg(), allowproxychecks(), config_delete(), config_file_getmem(), config_set_option(), and fr_check_nopause_compat_cfg().

◆ ssl_service_key

char* config_file::ssl_service_key

◆ ssl_service_pem

char* config_file::ssl_service_pem

◆ ssl_port

int config_file::ssl_port

◆ ssl_upstream

int config_file::ssl_upstream

if outgoing tcp connections use SSL

Referenced by config_create(), config_set_option(), deleg_port_number(), processQueryTargets(), and ub_ctx_set_tls().

◆ tls_cert_bundle

char* config_file::tls_cert_bundle

◆ tls_win_cert

int config_file::tls_win_cert

should the system certificate store get added to the cert bundle

Referenced by config_create(), config_set_option(), dt_io_thread_apply_cfg(), libworker_setup(), and service_init().

◆ tls_additional_port

struct config_strlist* config_file::tls_additional_port

◆ tls_session_ticket_keys

struct config_strlist_head config_file::tls_session_ticket_keys

secret key used to encrypt and decrypt TLS session ticket

Referenced by check_file_clobber(), config_delete(), config_file_getmem(), config_set_option(), and service_init().

◆ tls_ciphers

char* config_file::tls_ciphers

◆ tls_ciphersuites

char* config_file::tls_ciphersuites

TLS chiphersuites (TLSv1.3).

Referenced by config_delete(), config_file_getmem(), config_set_option(), and service_init().

◆ tls_use_sni

◆ tls_protocols

char* config_file::tls_protocols

◆ https_port

int config_file::https_port

port on which to provide DNS over HTTPS service

Referenced by cfg_has_https(), config_create(), config_set_option(), fr_check_compat_cfg(), interfacechecks(), and listening_ports_open().

◆ http_endpoint

char* config_file::http_endpoint

◆ http_max_streams

uint32_t config_file::http_max_streams

MAX_CONCURRENT_STREAMS HTTP/2 setting.

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), and worker_init().

◆ http_query_buffer_size

size_t config_file::http_query_buffer_size

maximum size of all HTTP2 query buffers combined.

Referenced by checkrlimits(), config_apply(), config_create(), and config_set_option().

◆ http_response_buffer_size

size_t config_file::http_response_buffer_size

maximum size of all HTTP2 response buffers combined.

Referenced by checkrlimits(), config_apply(), config_create(), and config_set_option().

◆ http_nodelay

int config_file::http_nodelay

set TCP_NODELAY option for http sockets

Referenced by config_create(), config_set_option(), and listening_ports_open().

◆ http_notls_downstream

int config_file::http_notls_downstream

Disable TLS for http sockets downstream.

Referenced by config_set_option(), fr_check_compat_cfg(), listening_ports_open(), and worker_init().

◆ quic_port

int config_file::quic_port

port on which to provide DNS over QUIC service

Referenced by cfg_has_quic(), config_create(), config_set_option(), interfacechecks(), and listening_ports_open().

◆ quic_size

size_t config_file::quic_size

size of the quic data, max bytes

Referenced by config_create(), and config_set_option().

◆ outgoing_num_ports

int config_file::outgoing_num_ports

outgoing port range number of ports (per thread)

Referenced by checkrlimits(), config_create(), config_create_forlib(), config_set_option(), libworker_setup(), and worker_init().

◆ outgoing_num_tcp

size_t config_file::outgoing_num_tcp

number of outgoing tcp buffers per (per thread)

Referenced by checkrlimits(), config_create(), config_create_forlib(), config_set_option(), fr_check_compat_cfg(), libworker_setup(), and worker_init().

◆ incoming_num_tcp

size_t config_file::incoming_num_tcp

number of incoming tcp buffers per (per thread)

Referenced by checkrlimits(), config_create(), config_set_option(), fr_check_compat_cfg(), listening_ports_open(), and worker_init().

◆ outgoing_avail_ports

int* config_file::outgoing_avail_ports

◆ edns_buffer_size

size_t config_file::edns_buffer_size

EDNS buffer size to use.

Referenced by config_apply(), config_create(), config_set_option(), and morechecks().

◆ stream_wait_size

size_t config_file::stream_wait_size

size of the stream wait buffers, max

Referenced by checkrlimits(), config_apply(), config_create(), and config_set_option().

◆ msg_buffer_size

size_t config_file::msg_buffer_size

◆ msg_cache_size

size_t config_file::msg_cache_size

◆ msg_cache_slabs

size_t config_file::msg_cache_slabs

◆ num_queries_per_thread

size_t config_file::num_queries_per_thread

number of queries every thread can service

Referenced by config_create(), config_set_option(), fr_worker_pickup_mesh(), and mesh_create().

◆ jostle_time

size_t config_file::jostle_time

number of msec to wait before items can be jostled out

Referenced by config_create(), config_set_option(), fr_worker_pickup_mesh(), and mesh_create().

◆ rrset_cache_size

◆ rrset_cache_slabs

size_t config_file::rrset_cache_slabs

◆ host_ttl

int config_file::host_ttl

◆ infra_cache_slabs

size_t config_file::infra_cache_slabs

number of slabs in the infra host cache

Referenced by config_create(), config_create_forlib(), config_set_option(), infra_adjust(), and infra_create().

◆ infra_cache_numhosts

size_t config_file::infra_cache_numhosts

max number of hosts in the infra cache

Referenced by checkrlimits(), config_create(), config_set_option(), fr_adjust_cache(), infra_adjust(), and infra_create().

◆ infra_cache_min_rtt

int config_file::infra_cache_min_rtt

min value for infra cache rtt (min retransmit timeout)

Referenced by config_apply(), config_create(), and config_set_option().

◆ infra_cache_max_rtt

int config_file::infra_cache_max_rtt

max value for infra cache rtt (max retransmit timeout)

Referenced by config_apply(), config_create(), and config_set_option().

◆ infra_keep_probing

int config_file::infra_keep_probing

◆ delay_close

int config_file::delay_close

delay close of udp-timeouted ports, if 0 no delayclose.

in msec

Referenced by config_create(), config_set_option(), fr_worker_pickup_outside_network(), libworker_setup(), and worker_init().

◆ udp_connect

int config_file::udp_connect

udp_connect enable uses UDP connect to mitigate ICMP side channel

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), libworker_setup(), and worker_init().

◆ target_fetch_policy

char* config_file::target_fetch_policy

◆ fast_server_permil

int config_file::fast_server_permil

percent*10, how many times in 1000 to pick from the fastest destinations

Referenced by config_create(), config_set_option(), and iter_filter_order().

◆ fast_server_num

size_t config_file::fast_server_num

number of fastest server to select from

Referenced by config_create(), config_set_option(), and iter_filter_order().

◆ if_automatic

int config_file::if_automatic

automatic interface for incoming messages.

Uses ipv6 remapping, and recvmsg/sendmsg ancillary data to detect interfaces, boolean

Referenced by checkrlimits(), config_create(), config_set_option(), fr_check_compat_cfg(), and listening_ports_open().

◆ if_automatic_ports

char* config_file::if_automatic_ports

extra ports to open if if_automatic enabled, or NULL for default

Referenced by cfg_has_https(), cfg_has_quic(), config_create(), config_delete(), config_file_getmem(), config_set_option(), fr_check_compat_cfg(), listening_ports_open(), and morechecks().

◆ so_rcvbuf

size_t config_file::so_rcvbuf

SO_RCVBUF size to set on port 53 UDP socket.

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), and listening_ports_open().

◆ so_sndbuf

size_t config_file::so_sndbuf

SO_SNDBUF size to set on port 53 UDP socket.

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), and listening_ports_open().

◆ so_reuseport

int config_file::so_reuseport

SO_REUSEPORT requested on port 53 sockets.

Referenced by config_create(), config_set_option(), daemon_open_shared_ports(), fr_check_compat_cfg(), and thread_start().

◆ ip_transparent

int config_file::ip_transparent

IP_TRANSPARENT socket option requested on port 53 sockets.

Referenced by add_open(), config_create(), config_set_option(), fr_check_compat_cfg(), and listening_ports_open().

◆ ip_freebind

int config_file::ip_freebind

IP_FREEBIND socket option request on port 53 sockets.

Referenced by add_open(), config_create(), config_set_option(), fr_check_compat_cfg(), and listening_ports_open().

◆ ip_dscp

int config_file::ip_dscp

◆ num_ifs

int config_file::num_ifs

◆ ifs

char** config_file::ifs

◆ num_out_ifs

int config_file::num_out_ifs

◆ out_ifs

char** config_file::out_ifs

◆ root_hints

◆ stubs

struct config_stub* config_file::stubs

◆ forwards

struct config_stub* config_file::forwards

◆ auths

struct config_auth* config_file::auths

◆ views

◆ donotqueryaddrs

struct config_strlist* config_file::donotqueryaddrs

◆ acls

struct config_str2list* config_file::acls

list of access control entries, linked list

Referenced by acl_list_apply_cfg(), aclchecks(), config_create(), config_delete(), and config_file_getmem().

◆ donotquery_localhost

int config_file::donotquery_localhost

◆ tcp_connection_limits

struct config_str2list* config_file::tcp_connection_limits

list of tcp connection limitss, linked list

Referenced by config_create(), config_delete(), config_file_getmem(), read_tcl_list(), and tcpconnlimitchecks().

◆ harden_short_bufsize

int config_file::harden_short_bufsize

harden against very small edns buffer sizes

Referenced by config_create(), config_create_forlib(), config_set_option(), and worker_handle_request().

◆ harden_large_queries

int config_file::harden_large_queries

harden against very large query sizes

Referenced by config_create(), config_set_option(), fr_check_compat_cfg(), worker_check_request(), and worker_init().

◆ harden_glue

int config_file::harden_glue

harden against spoofed glue (out of zone data)

Referenced by config_create(), config_set_option(), and scrub_sanitize().

◆ harden_unverified_glue

int config_file::harden_unverified_glue

harden against unverified glue

Referenced by config_create(), config_set_option(), processLastResort(), and scrub_sanitize().

◆ harden_dnssec_stripped

int config_file::harden_dnssec_stripped

harden against receiving no DNSSEC data for trust anchor

Referenced by config_create(), config_set_option(), and primeResponseToKE().

◆ harden_below_nxdomain

int config_file::harden_below_nxdomain

harden against queries that fall under known nxdomain names

Referenced by config_create(), config_set_option(), dns_cache_lookup(), processQueryResponse(), and processQueryTargets().

◆ harden_referral_path

int config_file::harden_referral_path

harden the referral path, query for NS,A,AAAA and validate

Referenced by config_create(), config_set_option(), processPrimeResponse(), and processQueryResponse().

◆ harden_algo_downgrade

int config_file::harden_algo_downgrade

◆ harden_unknown_additional

int config_file::harden_unknown_additional

harden against unknown records in the authority section and in the additional section

Referenced by config_create(), config_set_option(), and scrub_normalize().

◆ harden_cname_follow

int config_file::harden_cname_follow

◆ use_caps_bits_for_id

int config_file::use_caps_bits_for_id

◆ caps_whitelist

struct config_strlist* config_file::caps_whitelist

◆ private_address

struct config_strlist* config_file::private_address

strip away these private addrs from answers, no DNS Rebinding

Referenced by config_create(), config_delete(), config_file_getmem(), config_set_option(), fr_check_nopause_compat_cfg(), and read_addrs().

◆ private_domain

struct config_strlist* config_file::private_domain

allow domain (and subdomains) to use private address space

Referenced by config_create(), config_delete(), config_file_getmem(), config_set_option(), fr_check_nopause_compat_cfg(), and read_names().

◆ unwanted_threshold

size_t config_file::unwanted_threshold

◆ max_ttl

int config_file::max_ttl

the number of seconds maximal TTL used for RRsets and messages

Referenced by config_apply(), config_create(), and config_set_option().

◆ min_ttl

int config_file::min_ttl

the number of seconds minimum TTL used for RRsets and messages

Referenced by config_apply(), config_create(), and config_set_option().

◆ max_negative_ttl

int config_file::max_negative_ttl

the number of seconds maximal negative TTL for SOA in auth

Referenced by config_apply(), config_create(), and config_set_option().

◆ min_negative_ttl

int config_file::min_negative_ttl

the number of seconds minimal negative TTL for SOA in auth

Referenced by config_apply(), config_create(), and config_set_option().

◆ prefetch

int config_file::prefetch

if prefetching of messages should be performed.

Referenced by config_create(), config_set_option(), and worker_handle_request().

◆ prefetch_key

int config_file::prefetch_key

if prefetching of DNSKEYs should be performed.

Referenced by config_create(), config_set_option(), processInitRequest3(), and processQueryResponse().

◆ deny_any

int config_file::deny_any

deny queries of type ANY with an empty answer

Referenced by config_create(), config_set_option(), and fill_any().

◆ chrootdir

◆ username

char* config_file::username

◆ directory

◆ logfile

◆ pidfile

char* config_file::pidfile

◆ use_syslog

int config_file::use_syslog

◆ log_time_ascii

int config_file::log_time_ascii

log timestamp in ascii UTC

Referenced by config_apply(), config_create(), and config_set_option().

◆ log_time_iso

int config_file::log_time_iso

log timestamp in ISO8601 format

Referenced by config_apply(), config_create(), and config_set_option().

◆ log_queries

int config_file::log_queries

log queries with one line per query

Referenced by config_create(), config_set_option(), and worker_handle_request().

◆ log_replies

int config_file::log_replies

log replies with one line per reply

Referenced by config_create(), config_set_option(), mesh_send_reply(), and worker_handle_request().

◆ log_tag_queryreply

int config_file::log_tag_queryreply

tag log_queries and log_replies for filtering

Referenced by config_apply(), config_create(), and config_set_option().

◆ log_local_actions

int config_file::log_local_actions

log every local-zone hit

Referenced by config_create(), config_set_option(), and local_zones_answer().

◆ log_servfail

int config_file::log_servfail

◆ log_identity

char* config_file::log_identity

◆ log_destaddr

int config_file::log_destaddr

log dest addr for log_replies

Referenced by config_create(), config_set_option(), mesh_send_reply(), and worker_handle_request().

◆ log_thread_id

int config_file::log_thread_id

◆ hide_identity

int config_file::hide_identity

do not report identity (id.server, hostname.bind)

Referenced by answer_chaos(), config_create(), and config_set_option().

◆ hide_version

int config_file::hide_version

do not report version (version.server, version.bind)

Referenced by answer_chaos(), config_create(), and config_set_option().

◆ hide_trustanchor

int config_file::hide_trustanchor

do not report trustanchor (trustanchor.unbound)

Referenced by answer_chaos(), config_create(), and config_set_option().

◆ hide_http_user_agent

int config_file::hide_http_user_agent

do not report the User-Agent HTTP header

Referenced by config_create(), config_set_option(), and setup_http_user_agent().

◆ identity

char* config_file::identity

identity, hostname is returned if "".

Referenced by answer_chaos(), config_create(), config_delete(), config_file_getmem(), and config_set_option().

◆ version

char* config_file::version

version, package version returned if "".

Referenced by answer_chaos(), config_create(), config_delete(), config_file_getmem(), and config_set_option().

◆ http_user_agent

char* config_file::http_user_agent

◆ nsid_cfg_str

char* config_file::nsid_cfg_str

◆ module_conf

◆ trust_anchor_file_list

struct config_strlist* config_file::trust_anchor_file_list

◆ trust_anchor_list

struct config_strlist* config_file::trust_anchor_list

◆ auto_trust_anchor_file_list

struct config_strlist* config_file::auto_trust_anchor_file_list

◆ trusted_keys_file_list

struct config_strlist* config_file::trusted_keys_file_list

◆ domain_insecure

struct config_strlist* config_file::domain_insecure

◆ trust_anchor_signaling

int config_file::trust_anchor_signaling

send key tag query

Referenced by config_create(), config_set_option(), and prime_trust_anchor().

◆ root_key_sentinel

int config_file::root_key_sentinel

enable root key sentinel

Referenced by config_create(), config_set_option(), and processFinished().

◆ val_date_override

int32_t config_file::val_date_override

◆ val_sig_skew_min

int32_t config_file::val_sig_skew_min

◆ val_sig_skew_max

int32_t config_file::val_sig_skew_max

◆ val_max_restart

int32_t config_file::val_max_restart

max number of query restarts, number of IPs to probe

Referenced by config_create(), config_set_option(), fr_adjust_val_env(), fr_check_nopause_compat_cfg(), and val_env_apply_cfg().

◆ bogus_ttl

int config_file::bogus_ttl

this value sets the number of seconds before revalidating bogus

Referenced by config_create(), config_set_option(), fr_adjust_val_env(), fr_check_nopause_compat_cfg(), and val_env_apply_cfg().

◆ val_clean_additional

int config_file::val_clean_additional

◆ val_log_level

◆ val_log_squelch

int config_file::val_log_squelch

squelch val_log_level to log - this is library goes to callback

Referenced by config_create(), config_create_forlib(), config_set_option(), mesh_query_done(), processFinished(), and processFinished().

◆ val_permissive_mode

int config_file::val_permissive_mode

should validator allow bogus messages to go through

Referenced by config_create(), config_set_option(), and processFinished().

◆ aggressive_nsec

int config_file::aggressive_nsec

use cached NSEC records to synthesise (negative) answers

Referenced by config_create(), config_set_option(), process_response(), val_neg_getmsg(), and validate_positive_response().

◆ ignore_cd

int config_file::ignore_cd

◆ disable_edns_do

int config_file::disable_edns_do

◆ serve_expired

◆ serve_expired_ttl

int config_file::serve_expired_ttl

serve expired entries until TTL after expiration

Referenced by config_apply(), config_create(), config_set_option(), dns_cache_store(), error_response_cache(), and processFinished().

◆ serve_expired_ttl_reset

int config_file::serve_expired_ttl_reset

reset serve expired TTL after failed update attempt

Referenced by config_apply(), config_create(), config_set_option(), dns_cache_store(), error_response_cache(), and processFinished().

◆ serve_expired_reply_ttl

int config_file::serve_expired_reply_ttl

TTL for the serve expired replies.

Referenced by config_apply(), config_create(), and config_set_option().

◆ serve_expired_client_timeout

int config_file::serve_expired_client_timeout

serve expired entries only after trying to update the entries and this timeout (in milliseconds) is reached

Referenced by answer_from_cache(), config_create(), config_set_option(), mesh_new_callback(), and mesh_new_client().

◆ serve_original_ttl

int config_file::serve_original_ttl

serve original TTLs rather than decrementing ones

Referenced by config_apply(), config_create(), and config_set_option().

◆ val_nsec3_key_iterations

char* config_file::val_nsec3_key_iterations

◆ zonemd_permissive_mode

int config_file::zonemd_permissive_mode

if zonemd failures are permitted, only logged

Referenced by auth_zone_zonemd_fail(), config_create(), and config_set_option().

◆ add_holddown

unsigned int config_file::add_holddown

autotrust add holddown time, in seconds

Referenced by config_create(), config_set_option(), and do_addtime().

◆ del_holddown

unsigned int config_file::del_holddown

autotrust del holddown time, in seconds

Referenced by config_create(), config_set_option(), and do_remtime().

◆ keep_missing

unsigned int config_file::keep_missing

autotrust keep_missing time, in seconds.

0 is forever.

Referenced by config_create(), config_set_option(), and remove_missing_trustanchors().

◆ permit_small_holddown

int config_file::permit_small_holddown

permit small holddown values, allowing 5011 rollover very fast

Referenced by config_apply(), config_create(), and config_set_option().

◆ key_cache_size

size_t config_file::key_cache_size

◆ key_cache_slabs

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().

◆ neg_cache_size

size_t config_file::neg_cache_size

◆ local_zones

◆ local_zones_nodefault

struct config_strlist* config_file::local_zones_nodefault

◆ local_zones_disable_default

int config_file::local_zones_disable_default

do not add any default local zone

Referenced by config_create(), local_zone_enter_defaults(), and views_apply_cfg().

◆ local_data

◆ local_zone_overrides

struct config_str3list* config_file::local_zone_overrides

local zone override types per netblock

Referenced by config_create(), config_delete(), config_file_getmem(), and lz_enter_overrides().

◆ unblock_lan_zones

int config_file::unblock_lan_zones

unblock lan zones (reverse lookups for AS112 zones)

Referenced by config_create(), config_set_option(), and local_zone_enter_defaults().

◆ insecure_lan_zones

int config_file::insecure_lan_zones

insecure lan zones (don't validate AS112 zones)

Referenced by anchors_apply_cfg(), config_create(), and config_set_option().

◆ local_zone_tags

struct config_strbytelist* config_file::local_zone_tags

list of zonename, tagbitlist

Referenced by config_delete(), config_file_getmem(), and lz_enter_zone_tags().

◆ acl_tags

struct config_strbytelist* config_file::acl_tags

list of aclname, tagbitlist

Referenced by acl_list_apply_cfg(), acl_view_tag_checks(), config_delete(), and config_file_getmem().

◆ acl_tag_actions

struct config_str3list* config_file::acl_tag_actions

list of aclname, tagname, localzonetype

Referenced by acl_list_apply_cfg(), acl_view_tag_checks(), config_delete(), and config_file_getmem().

◆ acl_tag_datas

struct config_str3list* config_file::acl_tag_datas

list of aclname, tagname, redirectdata

Referenced by acl_list_apply_cfg(), acl_view_tag_checks(), config_delete(), config_file_getmem(), and fr_check_tag_datas().

◆ acl_view

struct config_str2list* config_file::acl_view

◆ interface_actions

struct config_str2list* config_file::interface_actions

list of interface action entries, linked list

Referenced by acl_interface_apply_cfg(), config_delete(), and config_file_getmem().

◆ interface_tags

struct config_strbytelist* config_file::interface_tags

list of interface, tagbitlist

Referenced by acl_interface_apply_cfg(), config_delete(), and config_file_getmem().

◆ interface_tag_actions

struct config_str3list* config_file::interface_tag_actions

list of interface, tagname, localzonetype

Referenced by acl_interface_apply_cfg(), config_delete(), and config_file_getmem().

◆ interface_tag_datas

struct config_str3list* config_file::interface_tag_datas

list of interface, tagname, redirectdata

Referenced by acl_interface_apply_cfg(), config_delete(), config_file_getmem(), and fr_check_tag_datas().

◆ interface_view

struct config_str2list* config_file::interface_view

list of interface, view

Referenced by acl_interface_apply_cfg(), config_delete(), and config_file_getmem().

◆ respip_tags

struct config_strbytelist* config_file::respip_tags

list of IP-netblock, tagbitlist

Referenced by config_delete(), config_file_getmem(), and respip_global_apply_cfg().

◆ respip_actions

struct config_str2list* config_file::respip_actions

list of response-driven access control entries, linked list

Referenced by config_delete(), config_file_getmem(), respip_conf_actions_test(), respip_conf_data_test(), and respip_global_apply_cfg().

◆ respip_data

struct config_str2list* config_file::respip_data

RRs configured for response-driven access controls.

Referenced by config_file_getmem(), respip_conf_data_test(), and respip_global_apply_cfg().

◆ tagname

char** config_file::tagname

◆ num_tags

◆ remote_control_enable

int config_file::remote_control_enable

◆ control_ifs

◆ control_use_cert

int config_file::control_use_cert

if the use-cert option is set

Referenced by config_create(), daemon_remote_create(), morechecks(), and setup_ctx().

◆ control_port

int config_file::control_port

◆ server_key_file

char* config_file::server_key_file

private key file for server

Referenced by config_create(), config_delete(), config_file_getmem(), config_set_option(), and morechecks().

◆ server_cert_file

char* config_file::server_cert_file

◆ control_key_file

char* config_file::control_key_file

private key file for unbound-control

Referenced by config_create(), config_delete(), config_file_getmem(), config_set_option(), morechecks(), and setup_ctx().

◆ control_cert_file

char* config_file::control_cert_file

certificate file for unbound-control

Referenced by config_create(), config_delete(), config_file_getmem(), config_set_option(), morechecks(), and setup_ctx().

◆ python_script

struct config_strlist* config_file::python_script

◆ dynlib_file

struct config_strlist* config_file::dynlib_file

◆ use_systemd

int config_file::use_systemd

Use systemd socket activation.

Referenced by add_open(), apply_settings(), config_create(), config_set_option(), and listening_ports_open().

◆ do_daemonize

int config_file::do_daemonize

daemonize, i.e.

fork into the background.

Referenced by apply_settings(), config_create(), config_set_option(), and perform_setup().

◆ discard_timeout

int config_file::discard_timeout

Wait time to drop recursion replies.

Referenced by config_create(), config_set_option(), mesh_query_done(), and mesh_serve_expired_callback().

◆ wait_limit

int config_file::wait_limit

Wait limit for number of replies per IP address.

Referenced by config_create(), config_set_option(), infra_wait_limit_allowed(), infra_wait_limit_dec(), and infra_wait_limit_inc().

◆ wait_limit_cookie

int config_file::wait_limit_cookie

Wait limit for number of replies per IP address with cookie.

Referenced by config_create(), config_set_option(), and infra_wait_limit_allowed().

◆ wait_limit_netblock

struct config_str2list* config_file::wait_limit_netblock

◆ wait_limit_cookie_netblock

struct config_str2list* config_file::wait_limit_cookie_netblock

wait limit with cookie per netblock

Referenced by config_create(), config_delete(), fr_check_nopause_compat_cfg(), and infra_wait_limit_netblock_insert().

◆ dns64_ignore_aaaa

struct config_strlist* config_file::dns64_ignore_aaaa

ignore AAAAs for these domain names and use A record anyway

Referenced by config_delete(), config_file_getmem(), and dns64_apply_cfg().

◆ dnstap

int config_file::dnstap

◆ dnstap_bidirectional

int config_file::dnstap_bidirectional

using bidirectional frame streams if true

Referenced by config_create(), config_set_option(), and dt_io_thread_apply_cfg().

◆ dnstap_socket_path

char* config_file::dnstap_socket_path

◆ dnstap_ip

char* config_file::dnstap_ip

◆ dnstap_tls

int config_file::dnstap_tls

dnstap TLS enable

Referenced by config_create(), config_set_option(), and dt_io_thread_apply_cfg().

◆ dnstap_tls_server_name

char* config_file::dnstap_tls_server_name

dnstap tls server authentication name

Referenced by config_delete(), config_file_getmem(), config_set_option(), and dt_io_thread_apply_cfg().

◆ dnstap_tls_cert_bundle

char* config_file::dnstap_tls_cert_bundle

dnstap server cert bundle

Referenced by config_delete(), config_file_getmem(), config_set_option(), and dt_io_thread_apply_cfg().

◆ dnstap_tls_client_key_file

char* config_file::dnstap_tls_client_key_file

dnstap client key for client authentication

Referenced by config_delete(), config_file_getmem(), config_set_option(), and dt_io_thread_apply_cfg().

◆ dnstap_tls_client_cert_file

char* config_file::dnstap_tls_client_cert_file

dnstap client cert for client authentication

Referenced by config_delete(), config_file_getmem(), config_set_option(), and dt_io_thread_apply_cfg().

◆ dnstap_send_identity

int config_file::dnstap_send_identity

true to send "identity" via dnstap

Referenced by config_set_option(), and fr_check_nopause_compat_cfg().

◆ dnstap_send_version

int config_file::dnstap_send_version

true to send "version" via dnstap

Referenced by config_set_option(), and fr_check_nopause_compat_cfg().

◆ dnstap_identity

char* config_file::dnstap_identity

dnstap "identity", hostname is used if "".

Referenced by config_delete(), config_file_getmem(), config_set_option(), and fr_check_nopause_compat_cfg().

◆ dnstap_version

char* config_file::dnstap_version

dnstap "version", package version is used if "".

Referenced by config_delete(), config_file_getmem(), config_set_option(), and fr_check_nopause_compat_cfg().

◆ dnstap_sample_rate

int config_file::dnstap_sample_rate

dnstap sample rate

Referenced by config_set_option().

◆ dnstap_log_resolver_query_messages

int config_file::dnstap_log_resolver_query_messages

true to log dnstap RESOLVER_QUERY message events

Referenced by config_set_option().

◆ dnstap_log_resolver_response_messages

int config_file::dnstap_log_resolver_response_messages

true to log dnstap RESOLVER_RESPONSE message events

Referenced by config_set_option().

◆ dnstap_log_client_query_messages

int config_file::dnstap_log_client_query_messages

true to log dnstap CLIENT_QUERY message events

Referenced by config_set_option().

◆ dnstap_log_client_response_messages

int config_file::dnstap_log_client_response_messages

true to log dnstap CLIENT_RESPONSE message events

Referenced by config_set_option().

◆ dnstap_log_forwarder_query_messages

int config_file::dnstap_log_forwarder_query_messages

true to log dnstap FORWARDER_QUERY message events

Referenced by config_set_option().

◆ dnstap_log_forwarder_response_messages

int config_file::dnstap_log_forwarder_response_messages

true to log dnstap FORWARDER_RESPONSE message events

Referenced by config_set_option().

◆ disable_dnssec_lame_check

int config_file::disable_dnssec_lame_check

true to disable DNSSEC lameness check in iterator

Referenced by config_create(), config_set_option(), and processQueryResponse().

◆ ip_ratelimit

int config_file::ip_ratelimit

ratelimit for ip addresses.

0 is off, otherwise qps (unless overridden)

Referenced by checkrlimits(), config_create(), config_set_option(), fr_adjust_infra(), fr_check_nopause_compat_cfg(), infra_adjust(), and infra_create().

◆ ip_ratelimit_cookie

int config_file::ip_ratelimit_cookie

ratelimit for ip addresses with a valid DNS Cookie.

0 is off, otherwise qps (unless overridden)

Referenced by config_create(), config_set_option(), fr_adjust_infra(), fr_check_nopause_compat_cfg(), infra_adjust(), and infra_create().

◆ ip_ratelimit_slabs

size_t config_file::ip_ratelimit_slabs

number of slabs for ip_ratelimit cache

Referenced by config_create(), config_create_forlib(), config_set_option(), infra_adjust(), and infra_create().

◆ ip_ratelimit_size

size_t config_file::ip_ratelimit_size

memory size in bytes for ip_ratelimit cache

Referenced by checkrlimits(), config_create(), config_set_option(), infra_adjust(), and infra_create().

◆ ip_ratelimit_factor

int config_file::ip_ratelimit_factor

ip_ratelimit factor, 0 blocks all, 10 allows 1/10 of traffic

Referenced by config_create(), and config_set_option().

◆ ip_ratelimit_backoff

int config_file::ip_ratelimit_backoff

ratelimit backoff, when on, if the limit is reached it is considered an attack and it backs off until 'demand' decreases over the RATE_WINDOW.

Referenced by config_create(), config_set_option(), and do_ip_ratelimit_list().

◆ ratelimit

int config_file::ratelimit

ratelimit for domains.

0 is off, otherwise qps (unless overridden)

Referenced by checkrlimits(), config_create(), config_set_option(), fr_adjust_infra(), fr_check_nopause_compat_cfg(), infra_adjust(), and infra_create().

◆ ratelimit_slabs

size_t config_file::ratelimit_slabs

number of slabs for ratelimit cache

Referenced by config_create(), config_create_forlib(), config_set_option(), infra_adjust(), and infra_create().

◆ ratelimit_size

size_t config_file::ratelimit_size

memory size in bytes for ratelimit cache

Referenced by checkrlimits(), config_create(), config_set_option(), fr_adjust_cache(), infra_adjust(), and infra_create().

◆ ratelimit_for_domain

struct config_str2list* config_file::ratelimit_for_domain

◆ ratelimit_below_domain

struct config_str2list* config_file::ratelimit_below_domain

◆ ratelimit_factor

int config_file::ratelimit_factor

ratelimit factor, 0 blocks all, 10 allows 1/10 of traffic

Referenced by config_create(), config_set_option(), and outnet_serviced_query().

◆ ratelimit_backoff

int config_file::ratelimit_backoff

ratelimit backoff, when on, if the limit is reached it is considered an attack and it backs off until 'demand' decreases over the RATE_WINDOW.

Referenced by config_create(), config_set_option(), do_ratelimit_list(), and outnet_serviced_query().

◆ outbound_msg_retry

int config_file::outbound_msg_retry

number of retries on outgoing queries

Referenced by config_create(), config_set_option(), fr_adjust_iter_env(), fr_check_nopause_compat_cfg(), and iter_apply_cfg().

◆ max_sent_count

int config_file::max_sent_count

max sent queries per qstate; resets on query restarts (e.g., CNAMES) and referrals

Referenced by config_create(), config_set_option(), fr_adjust_iter_env(), fr_check_nopause_compat_cfg(), and iter_apply_cfg().

◆ max_query_restarts

int config_file::max_query_restarts

max number of query restarts; determines max length of CNAME chain

Referenced by config_create(), config_set_option(), fr_adjust_iter_env(), fr_check_nopause_compat_cfg(), and iter_apply_cfg().

◆ qname_minimisation

int config_file::qname_minimisation

◆ qname_minimisation_strict

int config_file::qname_minimisation_strict

minimise QNAME in strict mode, minimise according to RFC.

Do not apply fallback

Referenced by config_create(), config_set_option(), processQueryResponse(), and processQueryTargets().

◆ shm_enable

int config_file::shm_enable

SHM data - true if shm is enabled.

Referenced by config_create(), config_set_option(), daemon_fork(), and worker_stat_timer_cb().

◆ shm_key

int config_file::shm_key

SHM data - key for the shm.

Referenced by config_create(), config_set_option(), and print_stats_shm().

◆ edns_client_strings

struct config_str2list* config_file::edns_client_strings

list of EDNS client string entries, linked list

Referenced by config_create(), config_delete(), config_file_getmem(), and edns_strings_apply_cfg().

◆ edns_client_string_opcode

uint16_t config_file::edns_client_string_opcode

EDNS opcode to use for EDNS client strings.

Referenced by config_create(), and edns_strings_apply_cfg().

◆ dnscrypt

int config_file::dnscrypt

DNSCrypt.

true to enable dnscrypt

Referenced by checkrlimits(), config_create(), config_read(), config_set_option(), and daemon_fork().

◆ dnscrypt_port

int config_file::dnscrypt_port

port on which to provide dnscrypt service

Referenced by config_create(), config_read(), config_set_option(), interfacechecks(), and listening_ports_open().

◆ dnscrypt_provider

char* config_file::dnscrypt_provider

provider name 2.dnscrypt-cert.example.com

Referenced by config_create(), config_file_getmem(), and config_set_option().

◆ dnscrypt_secret_key

struct config_strlist* config_file::dnscrypt_secret_key

dnscrypt secret keys 1.key

Referenced by config_create(), config_file_getmem(), config_set_option(), and dnsc_parse_keys().

◆ dnscrypt_provider_cert

struct config_strlist* config_file::dnscrypt_provider_cert

dnscrypt provider certs 1.cert

Referenced by config_create(), config_file_getmem(), config_set_option(), and dnsc_parse_certs().

◆ dnscrypt_provider_cert_rotated

struct config_strlist* config_file::dnscrypt_provider_cert_rotated

dnscrypt provider certs 1.cert which have been rotated and should not be advertised through DNS's providername TXT record but are required to be able to handle existing traffic using the old cert.

Referenced by config_create(), config_file_getmem(), config_set_option(), and dnsc_parse_certs().

◆ dnscrypt_shared_secret_cache_size

size_t config_file::dnscrypt_shared_secret_cache_size

memory size in bytes for dnscrypt shared secrets cache

Referenced by checkrlimits(), config_create(), and config_set_option().

◆ dnscrypt_shared_secret_cache_slabs

size_t config_file::dnscrypt_shared_secret_cache_slabs

number of slabs for dnscrypt shared secrets cache

Referenced by config_create(), config_create_forlib(), and config_set_option().

◆ dnscrypt_nonce_cache_size

size_t config_file::dnscrypt_nonce_cache_size

memory size in bytes for dnscrypt nonces cache

Referenced by checkrlimits(), config_create(), and config_set_option().

◆ dnscrypt_nonce_cache_slabs

size_t config_file::dnscrypt_nonce_cache_slabs

number of slabs for dnscrypt nonces cache

Referenced by config_create(), config_create_forlib(), and config_set_option().

◆ pad_responses

int config_file::pad_responses

EDNS padding according to RFC7830 and RFC8467.

true to enable padding of responses (default: on)

Referenced by config_create(), config_set_option(), and parse_edns_options_from_query().

◆ pad_responses_block_size

size_t config_file::pad_responses_block_size

block size with which to pad encrypted responses (default: 468)

Referenced by config_create(), config_set_option(), and parse_edns_options_from_query().

◆ pad_queries

int config_file::pad_queries

true to enable padding of queries (default: on)

Referenced by config_create(), config_set_option(), and outnet_serviced_query().

◆ pad_queries_block_size

size_t config_file::pad_queries_block_size

block size with which to pad encrypted queries (default: 128)

Referenced by config_create(), config_set_option(), and outnet_serviced_query().

◆ do_answer_cookie

int config_file::do_answer_cookie

IPsec module.

Downstream DNS Cookies do answer with server cookie when request contained cookie option

Referenced by config_create(), config_set_option(), init_cookie_secret(), parse_edns_options_from_query(), and worker_handle_request().

◆ cookie_secret

uint8_t config_file::cookie_secret[40]

◆ cookie_secret_len

size_t config_file::cookie_secret_len

cookie secret length

Referenced by config_create(), init_cookie_secret(), and parse_edns_options_from_query().

◆ cookie_secret_file

◆ ede

◆ ede_serve_expired

int config_file::ede_serve_expired

serve EDE code 3 - Stale Answer (RFC8914) for expired entries

Referenced by answer_from_cache(), config_create(), config_set_option(), and mesh_serve_expired_callback().

◆ dns_error_reporting

int config_file::dns_error_reporting

send DNS Error Reports to upstream reporting agent (RFC9567)

Referenced by config_create(), config_set_option(), and mesh_query_done().

◆ iter_scrub_ns

size_t config_file::iter_scrub_ns

limit on NS RRs in RRset for the iterator scrubber.

Referenced by config_create(), config_set_option(), and scrub_normalize().

◆ iter_scrub_cname

int config_file::iter_scrub_cname

limit on CNAME, DNAME RRs in answer for the iterator scrubber.

Referenced by config_create(), config_set_option(), and scrub_normalize().

◆ iter_scrub_rrsig

int config_file::iter_scrub_rrsig

limit on RRSIGs for an RRset for the iterator scrubber.

Referenced by config_create(), config_set_option(), and scrub_normalize().

◆ max_global_quota

int config_file::max_global_quota

limit on upstream queries for an incoming query and subqueries.

Referenced by config_apply(), config_create(), and config_set_option().

◆ val_validation_attempts

int config_file::val_validation_attempts

limit on validator validation attempts.

Referenced by config_create(), config_set_option(), dnskey_verify_rrset(), dnskeyset_verify_rrset_sig(), and val_can_restart().

◆ val_hash_attempts

int config_file::val_hash_attempts

limit on validator hash attempts.

Referenced by config_create(), config_set_option(), val_can_restart(), and verify_dnskeys_with_ds_rr().

◆ iter_scrub_promiscuous

int config_file::iter_scrub_promiscuous

Should the iterator scrub promiscuous NS rrsets, from positive answers.

Referenced by config_create(), config_set_option(), and scrub_normalize().

◆ iter_scrub_glue_count

size_t config_file::iter_scrub_glue_count

limit on number of glue RRs in a response.

Referenced by config_create(), config_set_option(), and scrub_normalize().

◆ delegpt_max_addr

int config_file::delegpt_max_addr

Max number of addresses in a delegation point.

Referenced by config_apply(), and config_create().

◆ delegpt_max_ns

int config_file::delegpt_max_ns

Max number of nameserver names in a delagation point.

Referenced by config_apply(), and config_create().


The documentation for this struct was generated from the following file: