-
Notifications
You must be signed in to change notification settings - Fork 56
/
edgedns.toml
94 lines (64 loc) · 2.36 KB
/
edgedns.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# EdgeDNS configuration
[upstream]
# Type of upstream servers: "resolver" or "authoritative"
type = "resolver"
# Upstream servers
servers = ["8.8.8.8:53", "8.8.4.4:53"]
# Load balancing/failover strategy: "uniform", "fallback" or "minload"
strategy = "minload"
# Max duration with a majority of failures before marking a server as temporarily
# unresponsive. That value should be specificied in ms.
max_failure_duration = 2500
[cache]
# Max number of cached entries
max_items = 250000
# Minimum TTL - Records with a TTL shorter than that one will not trigger a
# cache refrseh. Increasing that value increases the cache hit ratio,
# improves reliability and reduces the load on upstream servers, but zones
# changes will obviously require more time to be visible by clients.
min_ttl = 60
# Maximum TTL - Records with a TTL larger than that one will be refreshed no
# matter what. These usually come from misconfigured zones.
max_ttl = 86400
[network]
# Max number of UDP ports to use for outgoing connections, up to 64511
udp_ports = 8
# Listen address
listen = "0.0.0.0:53"
[webservice]
# Change to `true` in order to start the webservice
enabled = false
# Webservice address for Prometheus. Path will be /metrics
listen = "0.0.0.0:9090"
[dnstap]
# Change to `true` in order to enable dnstap-based logging
enabled = false
# Backlog
# backlog = 4096
# UNIX socket path, relative to the chroot directory
socket_path = "/var/run/edgedns.dnstap"
# Identity (optional) - Should be set to the name of the host
# identity = "hostname"
# Version (optional) - Should be set to the software name
version = "EdgeDNS"
[global]
# User name to drop privileges to
# user = "_edgedns"
# Group to drop privileges to, if not the primary group of the user
# group = "_edgedns"
# Directory to chroot() into
# chroot = "/var/empty"
# Number of threads handling client queries received over UDP
# More than 1 is rarely required. Set to 0 to disable UDP.
threads_udp = 1
# Number of threads handling client queries received over TCP
# More than 1 is very rarely required. Set to 0 to disable TCP.
threads_tcp = 1
# Max number of clients using TCP
max_tcp_clients = 100
# Max number of clients waiting for a response
max_waiting_clients = 1000000
# Max number of inflight queries
max_active_queries = 100000
# Max number of clients waiting for a response to the same query
max_clients_waiting_for_query = 1000