Self host a DNS server for privacy & security
open sourceGPL-3.0-or-laterself-hostablefree
Technitium DNS Server is an open source authoritative and recursive DNS server, written in .NET, that you host yourself on Windows, Linux, macOS, Raspberry Pi or Docker and manage from a web console. It blocks ads and malware network-wide with block list URLs, forwards to public resolvers over DNS-over-TLS, DNS-over-HTTPS or DNS-over-QUIC, and can serve those encrypted protocols itself. Beyond ad blocking it hosts your own zones with DNSSEC signing, zone transfers, dynamic updates and catalog zones, and has clustering, a DHCP server, DNS Apps for split horizon and geolocation, OIDC single sign-on, LDAP, role-based access and an HTTP API. GPLv3.
Ways to install
On your own server
Package managers
Problems it solves
- block ads and malware for my whole network with a DNS server that also runs on Windows
- host my own domain's DNS zones with DNSSEC signing on my own server
- run a recursive resolver at home so my ISP can't see or tamper with my DNS lookups
- forward my network's DNS to Cloudflare or Quad9 over DNS-over-HTTPS or DNS-over-QUIC
- serve DNS-over-HTTPS, DNS-over-TLS and DNS-over-QUIC to my own devices
- manage two DNS servers from one admin console so one keeps working if the other fails
- return different DNS answers to internal and external clients (split horizon)
- apply different regex block lists to different client subnets
- replace Windows Server DNS and DHCP in a small office with a free self-hosted server
- log in to my DNS server's admin console with our OIDC single sign-on
- route DNS queries over Tor through a SOCKS5 proxy for privacy
Features
- authoritative and recursive DNS server
- block list URLs updated daily, with a Quick Add list of popular lists
- DNS-over-TLS, DNS-over-HTTPS (HTTP/1.1, 2 and 3) and DNS-over-QUIC for forwarders and as self-hosted services
- DNSSEC validation and DNSSEC-signed zones (RSA, ECDSA, EdDSA; NSEC and NSEC3)
- primary, secondary, stub, conditional forwarder and catalog zones
- zone transfers with AXFR, IXFR, NOTIFY, XFR-over-TLS and XFR-over-QUIC; TSIG
- dynamic DNS updates (RFC 2136) with security policy
- built-in clustering to manage several instances from one console
- single sign-on with OpenID Connect, LDAP authentication and TOTP two-factor authentication
- DNS Apps for split horizon, geolocation, advanced regex blocking and DNS64
View 4 more
- built-in DHCP server for multiple networks
- serve stale, prefetch and persistent cache
- multi-user role-based access with non-expiring API tokens and an HTTP API
- HTTP and SOCKS5 proxy support, including DNS over Tor
Limitations
- Doesn't run on Raspberry Pi 1 or Pi Zero: Raspberry Pi support needs an armv7 CPU5
Capabilities
| Has an API | plan not known |
|---|---|
| Takes plugins | plan not known |
| Has single sign-on | plan not known |
Alternatives
The same job
These do what Technitium DNS Server does.
- AdGuard Home Network-wide ads & trackers blocking DNS server
- Knot Resolver Full caching DNS resolver implementation
- BIND 9 Versatile, classic, complete name server software
- Knot DNS High-performance authoritative-only DNS server
- Blocky Fast and lightweight DNS proxy as ad-blocker for local network with many features
- PowerDNS Recursor A high-performance DNS recursor with built-in scripting capabilities
