Skip to content
Back to skills

Unbound Knowledge Patch

ASecurity

Unbound

  • 25 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 5, 2026
developmentrustnodeapibackendsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill unbound-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unbound Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unbound Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-unbound-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-unbound-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: unbound-knowledge-patch
description: Unbound
version: "1.26.2"
license: MIT
metadata:
  author: Nevaberry
---


# Unbound compatibility guidance

Load this skill when configuring, upgrading, building, or troubleshooting Unbound,
or integrating libunbound and resolver modules. Use the quick references below for
configuration changes and common operations; follow the topic files for detailed
behavior, affected versions, security fixes, and platform-specific requirements.

| Reference | Topics |
| --- | --- |
| [Cache and recursion](references/cache-and-recursion.md) | ECS activation, stale answers, TTLs, Redis, quotas, wait limits |
| [Operations and observability](references/operations-and-observability.md) | Reloads, cache inspection, control setup, dnstap, logs, statistics |
| [Platforms and builds](references/platforms-and-builds.md) | Build flags, signing key, operating systems, services, libunbound, modules |
| [Security and policy](references/security-and-policy.md) | Security patches, trust anchors, DNSSEC, response filtering, Cookies, RPZ |
| [Transports and TLS](references/transports-and-tls.md) | TLS authentication, encrypted listeners, QUIC, TCP, UDP, proxies, DNSCrypt |
| [Zones and resolution](references/zones-and-resolution.md) | Forwarders, stubs, local data, views, transfers, ZONEMD, DNS64, NAT64 |

## Upgrade changes and deprecations

### Activate the subnet module explicitly

Since 1.23.0, `module-config` defaults to `"validator iterator"` for every build.
If configuration relied on `--enable-subnet` to activate EDNS Client Subnet handling,
add `subnetcache` explicitly:

```conf
server:
    module-config: "subnetcache validator iterator"
```

### Check changed defaults and execution requirements

- Since 1.23.0, `serve-expired-ttl` defaults to `86400` seconds and
  `serve-expired-client-timeout` to `1800` milliseconds. `max-global-quota` defaults to `200`.
- Unbound 1.23.0 serves `resolver.arpa` and `service.arpa` locally by default.
  Check configurations that previously relied on upstream resolution for these names.
- Unbound 1.24.0 disables TLS 1.2; support returns in 1.24.1. In 1.25.0,
  TLS 1.2 is enabled by default and `tls-protocols` selects supported TLS versions.
- Since 1.26.0, `ipsecmod` executes its hook directly. Hook scripts must be executable
  and start with an interpreter line such as `#!/bin/sh`.
- In 1.26.0, secondary zone files reject `$INCLUDE`, and auth-zone and RPZ loads
  discard records outside the zone apex.
- The libunbound event callback signature changes in 1.8.0; event API consumers
  must rebuild against the updated header. In 1.26.0, libunbound pipe functions
  return an error after an event base is set on the context.

### Update renamed options and command usage

| Earlier usage | Required or supported change |
| --- | --- |
| `low-rtt`, `low-rtt-permil` | Deprecated in 1.8.2 in favor of `fast-server-permil` and `fast-server-num`; the latter defaults to three servers. |
| `client-subnet-opcode` | Deprecated in 1.6.2. |
| `additional-tls-port` in 1.7.1, `tls-additional-ports` in 1.7.2 | Use repeated `tls-additional-port` entries starting in 1.7.3, with TLS credentials configured. |
| `edns-client-tag` | Replaced by `edns-client-string` in 1.13.0. |
| `num.zero_ttl` | Renamed to `num.expired` in 1.10.0. |
| Build details parsed from `unbound -h` | Switch to `unbound -V` in 1.9.3. |
| Extra arguments to argument-free control commands | Rejected by `unbound-control` in 1.24.0. |

## Security-sensitive configurations

- On 1.23.0 through 1.25.1, `dns-error-reporting: yes` exposes a crash.
  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, `serve-expired: yes` with a `response-ip` CNAME redirect
  or `rpz-cname-override` can crash at the stale-answer timeout. Use 1.25.2 for this configuration.
- 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`; 1.25.2 fixes reverse-order reply accounting.
- Unbound 1.26.1 enforces `wait-limit` for queries needing recursion even with
  `serve-expired: yes`, and closes a zone-verification bypass window with `zonemd-check` enabled.
- Unbound 1.26.2 fixes multithreaded DoQ path-migration memory safety, excessive DNS name
  decompression work, a cache-poisoning risk with `unwanted-reply-threshold`, and NXDOMAIN/NSEC
  validation issues under an island trust anchor beneath an insecure parent zone.
- For source builds that cannot upgrade, the security bundles are
  `patch_combined-1.25.1_v3.diff` and `patch_combined_autoconf-1.25.2.diff`.
  The former includes the DNSSEC validator fix for possible code execution (CVE-2026-33278).

## Reload configuration and inspect caches

`unbound-control fast_reload` reads changed configuration while workers continue
serving, then pauses them briefly to apply it, with a service interruption below a
second. Workers pick up dnstap changes in 1.24.2. In 1.25.0, fast reload applies
`iter-scrub-ns`, `iter-scrub-cname`, and `max-global-quota` changes, plus changes to
`tls-service-key`, `tls-service-pem`, and `tls-cert-bundle`; it checks service key
and PEM modification times. Reloading rebuilds TLS contexts when certificate files
change, covering inbound DoT, DoH, and DoQ and outbound DoT.

```sh
unbound-control fast_reload
```

In 1.26.0, fast reload keeps the server running on key-file configuration errors,
configuration-read allocation failures, and certain dnstap or DNS Cookie initialization
failures. Pending ZONEMD verification can coexist with a fast reload.

`cache_lookup` prints cached RRsets and messages, including subnet-cache entries.
Use `+t` for top-level domains or the root. Flush commands using `+c` remove matching
Redis `cachedb` entries; `dump_cache` periodically releases locks so queries can continue.

```sh
unbound-control cache_lookup example.net. example.org.
unbound-control cache_lookup +t com.
unbound-control flush +c example.net.
```

## Stale answers, external caches, and waiting clients

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 both serve-expired and `cachedb` active, the external cache is checked first;
`cachedb-check-when-serve-expired: no` in `cachedb:` disables that check.

In 1.24.1, cached records expire at TTL zero, `cachedb` skips upstream answers with TTL zero,
and `serve-expired-reply-ttl` is capped at the record's original TTL. In 1.25.0,
`forward-no-cache` and `stub-no-cache` suppress external cache reads and writes for their respective zones.
Redis read-only replicas use `redis-replica-*`; `cachedb-no-store: yes` keeps backend
lookups active while stopping writes.

DNSBomb mitigation defaults introduced in 1.20.0 are `discard-timeout: 1900`
milliseconds, `wait-limit: 1000`, and `wait-limit-cookie: 10000`. Wait limits apply
only to requests needing recursion; resolution can continue after a reply is suppressed.
Loopback clients are exempt from `wait-limit` in 1.23.0. In 1.24.1,
`wait-limit: 0` disables all wait limits, `wait-limit-cookie: 0` disables the limit
for cookie-validated clients, and exceeding `wait-limit` returns `SERVFAIL`.
Reaching `discard-timeout` drops queries only on UDP in 1.24.1.

```conf
server:
    wait-limit-netblock: 192.0.2.0/24 100
    wait-limit-cookie-netblock: 192.0.2.0/24 200
```

## TLS forwarding and QUIC

`forward-tcp-upstream` and `forward-tls-upstream` can override the corresponding
server-wide settings. For example, disable forced TLS for a particular zone:

```conf
server:
    tls-upstream: yes

forward-zone:
    name: "example.net."
    forward-addr: 192.0.2.53
    forward-tls-upstream: no
```

In a TLS-enabled forward zone, `forward-addr: 192.0.2.53#resolver.example.net`
uses port 853 and verifies the peer name using `tls-cert-bundle`. Unbound sends
that name in SNI starting in 1.8.1. Reusing an upstream TLS connection requires
a matching TLS authentication name in 1.25.0, even when upstreams share an IP.

Build DoQ with `--with-libngtcp2=path`, passing the QUIC-capable OpenSSL build used
by libngtcp2 through `--with-ssl=path`. `num.query.quic` counts QUIC queries and
`mem.quic` reports memory use. Since 1.25.2, `quic-size` covers connection and stream
buffers; Unbound can refuse new connections or reset streams when their allocations would exceed the budget.

```conf
server:
    quic-port: 853
    quic-size: 8m
```

## Local zones, transfers, and DNS64

Pass a complete resource record to `local_data_remove` to remove that record in
1.26.0. Passing only the owner name removes all its local records.

```sh
unbound-control local_data_remove "host.example. 300 IN A 192.0.2.10"
```

The `block_aaaa` type suppresses AAAA lookups, as `block_a` does for A.
`block_a_wdata` and `block_aaaa_wdata` serve matching local data first, block the
selected type when no local answer exists, and resolve other types recursively.
`max-transfer-size` and `max-transfer-time` cap auth-zone and RPZ transfer volume
and duration; both limits are disabled by default.

In 1.24.1, 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"
```

In 1.26.0, with DNSSEC enabled, DNS64 checks AAAA validation before synthesis,
uses A records after `respip` rewrites, and honors RPZ passthrough. It honors
`forward-no-cache` and `stub-no-cache`; with `subnetcache`, ECS-scoped answers stay
out of the global cache.

## DNS Cookies and operational visibility

`answer-cookie: yes` generates server cookies for requests containing client
cookies. An unset `cookie-secret` produces a random secret; configure a shared
secret for anycast nodes that need to validate each other's cookies. Store rollover
secrets using `cookie-secret-file` and manage them with `unbound-control add_cookie_secret`,
`activate_cookie_secret`, `drop_cookie_secret`, and `unbound-control print_cookie_secrets`.

`dnstap-sample-rate` is a denominator: 100 selects one in every 100 dnstap messages.
Its configuration-file parsing was fixed after 1.21.0. `log-time-iso: yes` includes
ISO 8601 timestamps with a time zone. On Linux, `log-thread-id: yes` includes
system-wide thread IDs. Extended statistics include `num.valops` for signature
validation operations, and `num.dns_error_reports` counts DNS error reports sent.

Use `unbound-checkconf -q /etc/unbound/unbound.conf` to suppress the success message
while retaining errors. `unbound -V` prints build options, linked libraries, and
linked modules as well as the version. `SOURCE_DATE_EPOCH` replaces the current time
for reproducible build timestamps.

Files in this skill

  • SKILL.md6.7 KB
  • coverage.json818 B
  • references/cache-and-recursion.md3.9 KB
  • references/operations-and-observability.md3.8 KB
  • references/platforms-and-builds.md2.4 KB
  • references/security-and-policy.md3.5 KB
  • references/transports-and-tls.md2.7 KB
  • references/zones-and-resolution.md4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.