talira

Knot DNS

High-performance authoritative-only DNS server

open sourceGPL-2.0-or-laterself-hostablefree

Knot DNS is an authoritative-only DNS server from CZ.NIC, the association that runs the .cz domain, built for very high response rates with a lock-free response path and suited to root and TLD name servers as well as ordinary domains. It runs as a primary or secondary with AXFR/IXFR, NOTIFY, dynamic updates and catalog zones, and signs zones itself: automatic DNSSEC key management, multithreaded signing with NSEC or NSEC3, ZONEMD, offline KSK operation and keys in PKCS #11 tokens. It answers over UDP, TCP, TLS 1.3 and QUIC, with an AF_XDP fast path on Linux, and loadable query modules add response rate limiting, forward and reverse record synthesis, GeoIP answers with EDNS Client Subnet, dnstap logging and online signing. Configuration is YAML or a database, changed on the fly through knotc; recursive resolution is left to CZ.NIC's separate Knot Resolver.

Ways to install

Problems it solves

  • host the authoritative DNS for our domains on our own servers with automatic DNSSEC signing and key rollovers
  • authoritative name servers for a TLD or a large zone that must answer a huge query rate
  • secondary name servers that pick up zone changes through incremental transfers as soon as the primary sends NOTIFY
  • add and remove zones on all our secondary name servers automatically through a catalog zone
  • serve our domains over DNS over QUIC and DNS over TLS from our own authoritative servers
  • keep the DNSSEC key-signing key offline and sign zones with keys stored in an HSM
  • rate-limit authoritative DNS responses so our name servers can't be used for amplification attacks
  • generate reverse PTR and forward records for a whole IPv6 range without writing each one into the zone
  • answer DNS queries differently depending on the client's location, using GeoIP and EDNS Client Subnet
  • add zones and change name server settings without restarting the DNS server
  • log the queries our authoritative name servers answer with dnstap for analysis
  • publish and verify ZONEMD digests so a whole zone's integrity can be checked

Features

  • primary and secondary operation with AXFR, IXFR and NOTIFY
  • dynamic updates (DDNS) and minimal responses
  • automatic DNSSEC key management and multithreaded signing with NSEC or NSEC3
  • offline KSK operation and a PKCS #11 interface
  • ZONEMD generation and validation
  • catalog zone generation and interpretation
  • UDP, TCP, TLS 1.3 and QUIC transports, with opportunistic, strict and mutual authentication
  • AF_XDP high-performance UDP, TCP and QUIC processing on Linux 4.18+
  • query modules: response rate limiting, record synthesis, statistics, dnstap, online signing, GeoIP with ECS
  • YAML or database configuration, changed on the fly
View 3 more
  • zone journal, persistent zone timers, zone backup and restore
  • TSIG transaction signatures and NSID server identification
  • knotc control utility and libknot Python bindings

Limitations

  • Doesn't resolve recursively: Knot DNS is authoritative only, and CZ.NIC's separate Knot Resolver does recursion34

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Knot DNS does.

  1. Technitium DNS Server Self host a DNS server for privacy & security
  2. PowerDNS Authoritative Server A high-performance and versatile authoritative DNS server
  3. BIND 9 Versatile, classic, complete name server software
  4. NSD Open-source authoritative DNS server from NLnet Labs
  5. CoreDNS CoreDNS is a DNS server that chains plugins
  6. PowerDNS Recursor A high-performance DNS recursor with built-in scripting capabilities

Compare Knot DNS with the top 3