v0.1.0
This commit is contained in:
commit
fa432bebda
189 files changed
+26219
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# Forwarder
|
||||
|
||||
```yaml
|
||||
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.
|
||||
* `fastest` uses an EWMA of the RTT with occasional exploration of the runner-up.
|
||||
* Logs and `easydns upstreams list` / `GET /api/v1/upstreams` show 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](secure-dns.md).
|
||||
Reference in new issue
Block a user