Rust crates for DNS, plus the hickory-dns server
Hickory DNS, formerly Trust-DNS, is a set of Rust libraries for DNS. hickory-proto encodes and decodes messages, hickory-net holds the transports and a client, hickory-resolver replaces the operating system's resolution inside a Rust program, and hickory-server is for building servers. The hickory-dns binary is built on them and runs as an authoritative server, a forwarder, a stub resolver or, experimentally, a recursive resolver. Zones are kept in memory, in zone files or in SQLite.
Encrypted transports, online DNSSEC and signed updates
- Encrypted DNS: DNS over TLS, over HTTPS and over QUIC, each behind a build feature, on the server side and in the resolver.
- Online DNSSEC: validation back to the root with the bundled root key, NSEC and NSEC3, and zones re-signed on every dynamic update.
- Dynamic DNS (RFC 2136): updates are journaled in SQLite and authenticated with SIG(0); TSIG is supported too.
- Pick your crypto provider: aws-lc-rs or ring, chosen through the suffix of each feature (
tls-ring,dnssec-aws-lc-rs). - Operations: one TOML config file, allow and deny lists, Prometheus metrics, and systemd readiness and watchdog notifications.
- Code safety goals: the project's rules are safe, stable Rust only and no panics. A code review by X41 D-Sec, organized by OSTIF and dated October 25, 2024, is published in the repository's
auditfolder.
A 0.x server, a parser already inside the Pixel 10
The project itself says not to run the server in production. The binary's README warns that Hickory DNS "is still under development" and that "running in production is not recommended". Recursive resolution is labeled experimental and only compiles in with the recursor feature. Technitium DNS Server is another self-hosted DNS server, with a web console.
Still 0.x, and API breaks come with minor versions. Version 0.26.0, released April 16, 2026, thirteen months after 0.25.0, folded hickory-client into hickory-net and the recursor into hickory-resolver. Version 0.26.3, released September 10, 2026, fixes 0.26.2 regressions in DNSSEC validation and QUIC servers. The security policy fully supports only the latest minor release train; fixes for older ones are decided case by case.
No prebuilt binaries. GitHub releases carry no attached files: the server is built with cargo, and encrypted protocols, DNSSEC and metrics are picked at build time. The Docker image lives in a separate repository, hickory-dns/docker, whose Dockerfile builds 0.26.2 with DoT, DoH, DNSSEC, the recursor and blocklists, but without QUIC or Prometheus metrics.
Some server features are missing. The README lists incremental zone transfer (IXFR), NOTIFY to secondaries and DNSCrypt as not implemented yet. Offline zone signing is not supported.
Memory safety is the project's stated reason to exist. Its FAQ explains another DNS server by the choice of a memory-safe language, and the website talks about removing whole classes of vulnerabilities that have long affected DNS software written in C. According to the same site, Android uses hickory-proto to parse DNS responses in the Pixel 10 firmware. The 0.26.0 release notes mention ongoing work to deploy the recursive resolver at Let's Encrypt, tracked in an issue that is still open.
