29 lines
1.6 KiB
Markdown
29 lines
1.6 KiB
Markdown
# Recursive resolver
|
|
|
|
```yaml
|
|
recursion:
|
|
enabled: true
|
|
allowed_clients: ["127.0.0.0/8", "::1/128", "192.168.0.0/16"]
|
|
qname_minimization: true
|
|
dnssec_validation: true
|
|
resolution: { default: recursive }
|
|
```
|
|
|
|
* Real iterative resolution: root hints → root → TLD → authoritative; no upstream resolver.
|
|
* **Anti-poisoning:** random 16-bit IDs, a fresh random source port per query, connected
|
|
UDP sockets, question matching, bailiwick filtering (answers/authority only inside the
|
|
queried server's zone, glue only for names inside the delegating zone), referral sanity
|
|
checks (must be a proper descendant enclosing the name), CNAME loop detection.
|
|
* **Limits:** `max_queries` upstream queries per resolution, `max_depth` referrals,
|
|
`max_cname_chain`, NS-address sub-resolution depth (4), `total_timeout` deadline.
|
|
* **Server selection:** EWMA RTT, unresponsive/lame servers are backed off.
|
|
* **QNAME minimisation** (RFC 9156, A queries) with fallback to the full name on errors.
|
|
* **Cache:** answers and negative answers (RFC 2308: min(SOA TTL, MINIMUM), capped by
|
|
`max_negative_ttl`), delegations and glue with trust ranking; SERVFAIL cached 5 s.
|
|
* **Root hints:** built in; `root_hints: file` to override; `easydns root-hints update`
|
|
downloads the IANA file, validates it (13 servers) and replaces it atomically.
|
|
* **Access:** recursion only for `allowed_clients` (default loopback). Other clients get
|
|
REFUSED for non-local names; local zones remain visible to them.
|
|
* **Offline testing:** set `authority_port` and point `root_hints` at local test servers
|
|
(this is how the integration tests run a root→TLD→authoritative chain on 127.0.0.x).
|