# Knot Resolver

> Full caching DNS resolver implementation

Source: https://talira.ai/catalog/knot-resolver-c1xd3ywc
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure, Command-line tool
- Categories: [networking / dns / servers](https://talira.ai/categories/networking/dns/servers)
- Platforms: linux, docker, cli[^8][^9]
- Licence: GPL-3.0-or-later[^4][^6]
- Pricing: Free and open source[^4][^5]
- Pricing notes: Free and open source; CZ.NIC sells professional support with an SLA and NDA, and free support runs through public channels.
- Free tier: yes[^4][^5]
- Self-hostable: yes[^4]
- API: yes[^7]
- Plugins: yes[^3][^4]
- Backed by: [CZ.NIC](https://talira.ai/orgs/cz-nic.md)

Knot Resolver is CZ.NIC's caching, DNSSEC-validating DNS resolver, made to scale from home routers to large resolver farms; [Cloudflare](https://talira.ai/catalog/cloudflare-01k5h588.md) calls it the cornerstone of its 1.1.1.1 public resolver. A small core in C and LuaJIT does iteration, validation and caching, and optional modules add everything else. Instead of threads it runs independent workers that can share one cache, so workers can be pinned to CPU cores and added or stopped without downtime. Since version 6 a manager written in Python takes declarative YAML configuration and an HTTP API for live changes, with the kresctl command. It serves DNS over TLS, HTTPS and QUIC, forwards chosen domains (also over TLS), and filters with policies, views and ACLs, local data and RPZ, DNS64 and Lua scripting. GPLv3 or later, with paid support with an SLA from CZ.NIC.

## Links

- Website: https://www.knot-resolver.cz/
- GitHub: https://github.com/CZ-NIC/knot-resolver
- Docs: https://www.knot-resolver.cz/documentation/latest/

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/knot-resolver>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/knot-resolver>[^2]

## Problems it solves

- run a validating DNS resolver for an ISP's customers that scales across every CPU core
- add or remove DNS resolver workers under load without dropping queries
- change DNS resolver settings through an HTTP API instead of editing files and restarting
- offer DNS over HTTPS and DNS over QUIC to our users from our own resolver
- block malicious domains on our recursive resolver with response policy zones
- apply different DNS filtering policies to different client networks on one resolver
- forward lookups for internal domains to our own DNS servers over TLS and resolve everything else
- build a DNS filtering service on top of a recursive resolver we can script in Lua
- keep the DNS cache across resolver restarts so it doesn't start cold
- synthesize IPv6 answers with DNS64 for clients on an IPv6-only network
- a DNSSEC-validating caching resolver small enough for a home router

## Features

- caching, DNSSEC-validating recursive resolution
- DNS over TLS, DNS over HTTPS and DNS over QUIC
- forwarding, including forwarding over TLS
- policies, views and ACLs, local data and RPZ
- DNS64, rebinding protection and IP address renumbering
- shared-nothing workers with a shared cache, scaled without downtime
- persistent cache, prefetching and serving expired records
- manager with declarative YAML configuration and an HTTP management API
- kresctl command-line utility
- modules in C and LuaJIT; Lua scripting
- statistics with metrics export, including Graphite and InfluxDB

## Limitations

- Official Docker image isn't for production: CZ.NIC publishes it as an easy way to try the resolver[^3]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.51 out of 1.
Signals: backing 0.50, extensibility 0.60.

- backed by CZ.NIC
- used by Cloudflare, CETIN, Whalebone
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Unbound](https://talira.ai/catalog/unbound-160q8erq.md): A validating, recursive, and caching DNS resolver
- [PowerDNS Recursor](https://talira.ai/catalog/powerdns-recursor-a8vgb65v.md): A high-performance DNS recursor with built-in scripting capabilities
- [Technitium DNS Server](https://talira.ai/catalog/technitium-dns-server-d3gqttvz.md): Self host a DNS server for privacy & security
- [BIND 9](https://talira.ai/catalog/bind-9-vqnp9dyq.md): Versatile, classic, complete name server software
- [Numa](https://talira.ai/catalog/numa-xmxe2kzd.md): Portable DNS resolver: ad blocking, local .numa names and private upstream queries
- [Knot DNS](https://talira.ai/catalog/knot-dns-p5w2901g.md): High-performance authoritative-only DNS server

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://gitlab.nic.cz/knot/knot-resolver/-/blob/master/README.md (checked 20 Nov 2026)
[^4]: https://www.knot-resolver.cz/ (checked 20 Nov 2026)
[^5]: https://www.knot-resolver.cz/support/ (checked 20 Nov 2026)
[^6]: https://github.com/CZ-NIC/knot-resolver/blob/master/COPYING (checked 20 Nov 2026)
[^7]: https://www.knot-resolver.cz/documentation/latest/manager-api.html (checked 20 Nov 2026)
[^8]: https://www.knot-resolver.cz/documentation/latest/gettingstarted-install.html (checked 20 Nov 2026)
[^9]: https://hub.docker.com/r/cznic/knot-resolver (checked 20 Nov 2026)
