Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Unbound Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-unbound-knowledge-patch-nevaberry-plugins)
---
name: unbound-knowledge-patch
description: Unbound
version: "1.26.2"
license: MIT
metadata:
author: Nevaberry
---
# Unbound compatibility guidance
Load this skill when changing Unbound configuration, upgrading a resolver,
investigating cache or DNSSEC behavior, operating encrypted listeners, or
building Unbound and integrating libunbound or resolver modules.
Use the topic references for complete conditions, examples, and release attribution.
| Reference | Topics |
| --- | --- |
| [Cache, resolution, and validation](references/cache-resolution-and-validation.md) | TTLs, stale answers, Redis, ECS, glue, aliases, DNSSEC, DNS64, NAT64 |
| [Configuration and transports](references/configuration-and-transports.md) | Includes, TLS, QUIC, TCP, DNSCrypt, Cookies, PROXYv2, limits, packet handling |
| [Operations and observability](references/operations-and-observability.md) | Reloads, remote control, cache inspection, logs, dnstap, statistics, trust anchors |
| [Platform and build behavior](references/platform-and-build.md) | Dependencies, systemd, operating systems, libunbound, C and Python module APIs |
| [Policy and auth zones](references/policy-and-auth-zones.md) | Local zones, views, RPZ, response IP policy, transfers, zone files, ZONEMD |
## Migration checks and changed defaults
### Activate the subnet cache explicitly
Since 1.23.0, `module-config` defaults to `"validator iterator"` for every build.
If `--enable-subnet` previously activated ECS handling, add `subnetcache` explicitly:
```conf
server:
module-config: "subnetcache validator iterator"
```
### Renamed options and changed interfaces
| Existing usage | Compatibility guidance |
| --- | --- |
| `edns-client-tag` | Replaced by `edns-client-string` in 1.13.0. |
| `low-rtt`, `low-rtt-permil` | Deprecated in favor of `fast-server-permil` and `fast-server-num` in 1.8.2; the latter defaults to three servers. |
| `client-subnet-opcode` | Deprecated in 1.6.2; that release changes `max-client-subnet-ipv6` to 56 by default. |
| `additional-tls-port`, `tls-additional-ports` | Use `tls-additional-port` once per extra TLS port starting in 1.7.3, with TLS credentials configured. |
| Build details parsed from `unbound -h` | Switch to `unbound -V` in 1.9.3. |
| `num.zero_ttl` | Renamed to `num.expired` in 1.10.0 as `serve-expired-reply-ttl` makes the reply TTL configurable. |
| `ip-ratelimit-factor: 1` | Since 1.9.0, passes all queries through the source IP limiter; previously blocked traffic subject to the limit. |
The `ub_event_callback_type` signature changes in 1.8.0; event API consumers must
rebuild against the updated header. C and Python EDNS callbacks also change to expose
`repinfo` (`comm_reply`) for client reply information before resolver modules run.
In 1.19.0, Python modules obtain the current script filename from `mod_env`,
instead of the script list in `config_file`.
In 1.26.0, `ipsecmod` executes its hook directly: a hook script must be executable
and start with an interpreter line such as `#!/bin/sh`.
Libunbound pipe functions return an error after an event base is set on the context.
### Defaults and TLS compatibility
| Setting or behavior | Guidance |
| --- | --- |
| `serve-expired-ttl` | Defaults to `86400`, allowing expired data for up to one day after expiration. |
| `serve-expired-client-timeout` | Defaults to `1800` milliseconds: a fresh lookup gets 1.8 seconds before falling back to expired data. |
| `max-global-quota` | Defaults to `200`, increased from `128`. |
| `iter-scrub-rrsig` | Defaults to `8` retained RRSIGs when scrubbing upstream replies. |
| `max-udp-size` | Defaults to 1232 bytes since 1.18.0, even when the client's EDNS buffer is larger. |
| `edns-buffer-size` | Separately defaults to 1232 bytes since 1.12.0. |
| `resolver.arpa`, `service.arpa` | Served locally by default; check configurations relying on upstream resolution. |
Unbound 1.24.0 disables TLS 1.2; 1.24.1 restores it. Since 1.25.0, `tls-protocols`
selects supported TLS versions, and TLS 1.2 is enabled by default but can be disabled.
Upstream TLS connection reuse requires a matching TLS authentication name,
even when upstreams share an IP address.
## Security conditions that affect configuration
- `dns-error-reporting: yes` exposes a crash in 1.23.0 through 1.25.1.
Use 1.25.2 for reporting, or set `dns-error-reporting: no` until fixed (CVE-2026-55973).
- On 1.10.0 through 1.25.1, the stale-answer timeout can crash the resolver when
`serve-expired: yes` is combined with a `response-ip` CNAME redirect or an
`rpz-cname-override`. Use 1.25.2 for this configuration (CVE-2026-55717).
- On 1.20.0 through 1.25.1 with `serve-expired: yes`, keep a positive
`discard-timeout` at least as large as `serve-expired-client-timeout`.
Version 1.25.2 fixes reply accounting for the reverse ordering (CVE-2026-56444).
- On libunbound through 1.25.1, reaching a nonzero `unwanted-reply-threshold`
can terminate the embedding process. From 1.25.2, it flushes the cache instead
(CVE-2026-44621). Version 1.26.2 fixes a cache poisoning risk for deployments
enabling this threshold (CVE-2026-109125).
- Unbound 1.26.2 fixes a memory-safety issue on multithreaded DoQ servers when
a client connection changes network paths (CVE-2026-97206), and service
degradation from excessive aggregate DNS name decompression work (CVE-2026-96405).
- Unbound 1.26.2 fixes NXDOMAIN classification and NSEC validation issues under
configured DNSSEC island trust anchors beneath insecure parent zones
(CVE-2026-50106 and CVE-2026-35501).
- Unbound 1.26.1 enforces `wait-limit` for queries needing recursion even with
`serve-expired: yes` (CVE-2026-77860), and closes a zone-verification bypass
window with `zonemd-check` enabled (CVE-2026-77955).
The topic references retain the remaining security fixes and their affected settings,
including combined source-patch bundles, DNSSEC work limits, cache updates, and EDNS handling.
## Reloads and cache inspection
`unbound-control fast_reload` reads changed configuration while workers serve queries,
then pauses workers briefly to apply it, interrupting DNS service for less than a second.
Workers pick up dnstap changes in 1.24.2. In 1.25.0 it applies changes to
`iter-scrub-ns`, `iter-scrub-cname`, and `max-global-quota`, plus TLS file settings
`tls-service-key`, `tls-service-pem`, and `tls-cert-bundle`.
It checks modification times of the service key and PEM files.
Reloading rebuilds changed certificate contexts for inbound DoT, DoH, DoQ and outbound DoT.
```sh
unbound-control fast_reload
unbound-control cache_lookup example.net. example.org.
unbound-control cache_lookup +t com.
unbound-control flush +c example.net.
```
`cache_lookup` prints cached RRsets and messages, including subnet-cache entries.
Its `+t` flag permits top-level domains or the root; flush commands using `+c`
remove matching Redis `cachedb` entries. `dump_cache` periodically releases cache
locks so queries can continue during a dump.
## Encrypted listeners, forwarders, and client identity
Build DoQ with `--with-libngtcp2=path` and supply the OpenSSL build with QUIC support
used by libngtcp2 through `--with-ssl=path`. Builds without QUIC support warn when
`quic-port` is configured.
```conf
server:
quic-port: 853
quic-size: 8m
```
`num.query.quic` counts QUIC queries and `mem.quic` reports memory use.
In 1.25.2, `quic-size` covers connection and stream buffers in aggregate; Unbound can
refuse new connections or reset streams when allocations would exceed the budget.
`forward-tcp-upstream` and `forward-tls-upstream` can override server-wide settings.
For example, `forward-tls-upstream: no` disables forced TLS for a particular forward zone.
In a TLS-enabled forward zone, `forward-addr: 192.0.2.53#resolver.example.net` uses
port 853 and verifies the peer name with `tls-cert-bundle`; since 1.8.1 it sends
the same name in TLS SNI.
Use a dedicated listener port listed in `proxy-protocol-port` for downstream PROXYv2.
Restrict that port to trusted proxies because its header supplies the client address.
Since 1.25.2, server cookies use the original DNS client IP carried by PROXY protocol.
`cookie-secret-file` persists EDNS COOKIE secrets for rollover; use `unbound-control`
commands `add_cookie_secret`, `activate_cookie_secret`, `drop_cookie_secret`, and
`print_cookie_secrets` to manage and inspect them.
## Cache and resolver limits
With `serve-expired` enabled, newly fetched data can refresh the cache before
validation finishes. Delegation and validation updates can replace expired records
that would otherwise remain available for a later DNSSEC-validated stale answer.
With `cachedb` active, Unbound checks the external cache before serving expired data;
`cachedb-check-when-serve-expired: no` in `cachedb:` disables that check.
`forward-no-cache` and `stub-no-cache` suppress external cache reads and writes.
Wait limits apply only to requests needing recursion. Since 1.24.1,
`wait-limit-cookie: 0` disables the limit for cookie-validated clients,
`wait-limit: 0` disables all wait limits, and exceeding `wait-limit` returns `SERVFAIL`.
Reaching `discard-timeout` drops queries only on UDP; resolution can continue
after the timeout suppresses a reply. Loopback clients are exempt from `wait-limit`.
`wait-limit-netblock` and `wait-limit-cookie-netblock` take a netblock followed by a limit.
Since 1.25.2, `max-global-quota` counts validator subqueries across DNSSEC restarts.
## Policy, DNS64, and transferred zones
Response IP policy applies to DNS64-synthesized answers, and RPZ works with DNS64,
using this module order. Compatibility with an added `cachedb` module is unverified.
```conf
server:
module-config: "respip dns64 validator iterator"
```
With DNSSEC enabled, DNS64 checks AAAA validation before synthesis, uses A records
after `respip` rewrites, and honors RPZ passthrough. DNSSEC-bogus answers return
`SERVFAIL` even when response IP policy or RPZ would otherwise rewrite them.
`block_aaaa` suppresses AAAA lookups, as `block_a` does for A. The `block_a_wdata`
and `block_aaaa_wdata` variants serve matching local data first, block the selected
type when no local answer exists, and recursively resolve other types.
Pass a complete RR to `unbound-control local_data_remove` to remove that record;
passing only its owner name removes all local records at that name.
`max-transfer-size` and `max-transfer-time` cap auth-zone and RPZ transfer volume
and duration; both are disabled by default. Secondary zone files reject `$INCLUDE`,
and auth-zone and RPZ loads discard records outside the zone apex.
`zonemd-check: yes` verifies the RFC 8976 digest and uses DNSSEC when available;
`zonemd-reject-absence: yes` requires the record. `zonemd-permissive-mode` logs
verification failures and permits loading to proceed.