Knot Resolver is a caching DNS resolver built in C and LuaJIT with optional extension modules. A Python manager adds YAML configuration, an HTTP API, and automated worker scaling.
Overview
Knot Resolver is a full caching DNS resolver whose small C and LuaJIT core exposes a state-machine-like API for extension modules. Built-in iterator, validator, and cache modules supply recursion, DNSSEC validation, and caching, with additional modules loaded by default to extend behavior.
From version 6 onward, a Python manager simplifies operations with declarative YAML configuration and an HTTP API for dynamic changes. The design uses no threading and a shared-nothing layout aside from an optionally shared MVCC cache, letting administrators pin workers to CPU cores and add or remove workers without downtime, which the manager can automate.
The resolver emphasizes DNS privacy transports, DNSSEC, a persistent low-memory cache, strong TCP features, filtering rules, and integration patterns such as etcd-based auto-configuration described for large deployments. LuaJIT modules also make it usable for DNS data research and custom policy.
Packages ship through an upstream repository and several distribution channels, with systemd integration so a localhost resolver can start without initial config changes. Docker images offer a dependency-free trial path, though documentation positions those images for experimentation rather than production.
Key features
- Caching resolver with iterator and validator modules
- YAML configuration via Python manager
- HTTP API for dynamic resolver changes
- DNS privacy and DNSSEC support
- Shared-nothing workers with scalable pinning
- LuaJIT extension modules
- Strong DNS over TCP behaviors
- Persistent cache with low memory use
Use cases
- Personal or home network DNS resolver
- Large-scale recursive resolver deployments
- DNS filtering and policy research
- Infrastructure needing declarative resolver config
- Testing resolver behavior in Docker