-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleaf.example.toml
More file actions
45 lines (36 loc) · 1.1 KB
/
leaf.example.toml
File metadata and controls
45 lines (36 loc) · 1.1 KB
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
# Copy to leaf.toml (or pass --config /path/to/file.toml)
# Precedence is: CLI flags > environment variables > TOML file.
# One or more authoritative zones.
# `zone = "..."` is still supported for backward compatibility.
zones = ["dev.example.com", "prod.example.com"]
# Listener for both UDP and TCP DNS.
listen = "0.0.0.0:5300"
[dns]
# Positive-answer TTL.
ttl = 60
# Optional global overrides. If omitted, defaults are derived per-zone:
# ns1.<zone> and hostmaster.<zone>
# zone_ns = "ns1.dev.example.com"
# zone_hostmaster = "hostmaster.dev.example.com"
[soa]
serial = 1
refresh = 300
retry = 60
expire = 86400
minimum = 60
[limits]
global_qps_limit = 5000
per_ip_qps_limit = 200
per_ip_invalid_qname_qps_limit = 20
limiter_max_tracked_ips = 10000
invalid_qname_limiter_max_tracked_keys = 50000
tcp_max_connections = 1024
tcp_max_connections_per_ip = 64
tcp_idle_timeout_ms = 10000
tcp_read_timeout_ms = 3000
tcp_write_timeout_ms = 3000
max_tcp_frame_bytes = 4096
max_udp_request_bytes = 1232
[logging]
# Set true to emit per-query UDP/TCP events at info level (no client IP/qname).
query_log_enabled = false