1.5 KiB
1.5 KiB
Forwarder
upstreams:
strategy: fastest # round-robin | fastest | failover | random | priority
timeout: 2s
health_check_interval: 30s
servers: ["tls://1.1.1.1#cloudflare-dns.com", "https://9.9.9.9/dns-query#dns.quad9.net", "192.168.1.1"]
forward_zones:
- domain: corp.internal
upstreams: ["10.0.0.53", "10.0.0.54"]
strategy: failover
clients: ["10.0.0.0/8"] # optional: rule applies only to these clients
fallback_recursion: false # true: recurse when all upstreams fail
resolution: { default: forward } # or forwardthenrecursive
- Up to three upstreams are tried per query in strategy order; SERVFAIL/REFUSED/NOTIMP/ FORMERR/timeouts count as failures.
- Circuit breaker: 3 consecutive failures open the circuit for 30 s, doubling up to 5 min; open upstreams are tried last; successful health checks close the circuit.
fastestuses an EWMA of the RTT with occasional exploration of the runner-up.- Logs and
easydns upstreams list/GET /api/v1/upstreamsshow RTT, failures, circuit state and the reason an upstream was chosen. - Forwarded answers are cached in a namespace per rule; private forward zones are never sent to public upstreams or the root.
- Identical concurrent questions are sent upstream once (query coalescing).
- Encrypted upstreams (
tls://…#name,https://…#name) keep their connections open: a DoT connection pool and a multiplexed HTTP/2 connection for DoH. Private CAs:upstreams.tls_ca_file. Full guide: secure-dns.md.