Every device on your network leaks a small stream of data each time it opens a website, because each one asks your router’s default DNS resolver where to go. Your ISP sees and logs every one of those lookups, ads and trackers resolve happily on the smart TV, and your homelab services remain reachable only by raw IP address or a pile of router hacks. Tools like Pi-hole and AdGuard Home fix the ad problem well, but both are filtering forwarders — they sit in front of another resolver and block domains. Neither hosts an actual DNS zone for your own machines, and neither gives you a real recursive resolver with DNSSEC validation and QNAME minimization.

Technitium DNS Server does all of it in one open-source package: a full recursive resolver, an authoritative name server for your own domains, network-wide ad and malware blocking, encrypted upstream forwarding over DNS-over-TLS, DNS-over-HTTPS, or DNS-over-QUIC, an optional DHCP server, and a clean web console. This guide deploys the current release, v15.6.2 (published 17 October 2026, per the project’s GitHub releases), in Docker Compose, then walks through the configuration that actually matters: recursion ACLs, block lists, encrypted forwarders, and local zones.

What Technitium is — and how it compares

Technitium DNS Server is a cross-platform .NET implementation that works as both an authoritative and a recursive DNS server. The project documents load testing at more than 100,000 requests per second on a stock Intel i7-8700 over gigabit Ethernet — far beyond anything a home network will ever throw at it. It runs on Windows, Linux, macOS, and Raspberry Pi, with an official Docker image on Docker Hub.

Where does it fit against the tools you may already run?

  • Pi-hole and AdGuard Home are purpose-built blocking forwarders. They filter domains but resolve everything else through an upstream. If ads are your only problem, either is fine — our AdGuard Home guide covers that path in depth, including the port 53 conflict with systemd-resolved that trips up most Ubuntu hosts.
  • Technitium is a complete DNS server. Beyond blocking, it hosts primary and secondary zones with DNSSEC signing, supports conditional forwarders and stub zones, validates DNSSEC on recursive answers, offers split-horizon responses, and can serve as the DHCP server for your network. The web console includes live query logs, per-client stats, and a built-in DNS client for testing records.

A common homelab pattern: Technitium becomes the network’s single DNS server — recursion and blocking included — while any existing Pi-hole stays in front of it as a filter, or gets retired. If your threat model includes attackers rather than just trackers, pair this setup with CrowdSec for intrusion prevention and the layered approach in our homelab security essentials.

What you need

  • A Linux host on your home network with Docker and Docker Compose installed. If containers are new to you, start with our Docker basics guide.
  • A static or DHCP-reserved IP for that host, because every device will point at it for DNS.
  • About 30 minutes, including pointing your router at the new resolver.

Step 1: Free up port 53

Like every DNS server, Technitium needs port 53, and on Ubuntu/Debian the systemd-resolved stub listener usually holds it. The fix is the same one used in the AdGuard Home guide:

sudo mkdir -p /etc/systemd/resolved.conf.d
sudo tee /etc/systemd/resolved.conf.d/technitium.conf > /dev/null <<'EOF'
[Resolve]
DNS=127.0.0.1
DNSStubListener=no
EOF

sudo mv /etc/resolv.conf /etc/resolv.conf.backup
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo systemctl reload-or-restart systemd-resolved

Verify the port is free with sudo ss -lntup | grep :53 before continuing.

Step 2: Deploy with Docker Compose

The project ships an official docker-compose.yml in its repository, and the block below mirrors it. The Compose service enables the essentials: the web console on port 5380, plain DNS on 53, two named volumes for config and logs, and a built-in health check hitting the server’s own API.

services:
  dns-server:
    container_name: dns-server
    hostname: dns-server
    image: docker.io/technitium/dns-server:latest
    ports:
      - "5380:5380/tcp" # web console (HTTP)
      - "53:53/udp"     # DNS service
      - "53:53/tcp"     # DNS service
    environment:
      - DNS_SERVER_DOMAIN=dns-server
      - DNS_SERVER_ADMIN_PASSWORD=change-me-before-first-start
      - DNS_SERVER_RECURSION=AllowOnlyForPrivateNetworks
      - DNS_SERVER_ENABLE_BLOCKING=true
      - DNS_SERVER_LOG_USING_LOCAL_TIME=true
    volumes:
      - config:/etc/dns
      - logs:/var/log/technitium/dns
    healthcheck:
      test: ["CMD-SHELL", "curl -f http://127.0.0.1:5380/api/dnsClient/healthCheck | grep '\"status\":\"ok\"'"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    restart: unless-stopped
    sysctls:
      - net.ipv4.ip_local_port_range=1024 65535

volumes:
  config:
  logs:

Three things to notice. First, set DNS_SERVER_ADMIN_PASSWORD before the first start — the container initializes the admin account from it, and the official compose comments list a password file option if you prefer not to put the secret in the compose file at all. Second, DNS_SERVER_RECURSION=AllowOnlyForPrivateNetworks is the default and correct choice for a home server: it refuses to resolve queries from the open internet, which is how open resolvers get abused in DDoS amplification attacks. Third, the image tag is latest; Technitium releases frequently, and the project treats that tag as the supported path for Docker installs.

Bring it up:

mkdir -p technitium && cd technitium
# create docker-compose.yml as shown above
docker compose up -d
docker compose logs -f

The console is now at http://<server-ip>:5380. Log in with user admin and the password you set. The official image also supports HTTPS for the console (port 53443, self-signed or your own certificate) — worth enabling once the basics work, or you can keep the console LAN-only and forget about it.

Step 3: Turn on recursion and blocking

Out of the box the server runs in blocking mode if you set DNS_SERVER_ENABLE_BLOCKING=true, but the defaults are minimal. Open the console and visit Settings → Recursion to confirm the recursion mode matches your environment (AllowOnlyForPrivateNetworks for a typical LAN). Then head to Blocking and add a block list — the same curated lists Pi-hole and AdGuard users rely on work fine here, since Technitium consumes them as regular block list zones:

  • https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts — broad ads and trackers
  • https://urlhaus.abuse.ch/downloads/hostfile/ — malware domains from abuse.ch

Save, then open the Zones tab and confirm a blockList zone appeared. From this point every device pointing at this server stops resolving those domains. The Query Logs tab shows live traffic with blocked responses highlighted, so you can watch the filtering actually happen before you trust it network-wide.

Step 4: Point your network at it

Same drill as any network-wide DNS change. In your router’s DHCP/LAN settings, set the DNS server handed out to clients to your Technitium host’s IP. Devices pick it up on their next DHCP renewal — reconnect a phone or laptop to force it immediately.

A quick sanity check from any Linux box:

dig @192.168.1.10 doubleclick.net

You want NXDOMAIN or a blocked-status response rather than an IP. Then try a normal site (dig @192.168.1.10 example.com) to confirm regular resolution works too.

Step 5: Encrypted upstreams

By default a recursive resolver talks to the root and TLD servers directly in plain text. That is how DNS is designed, and the SNI in your TLS traffic leaks domain names anyway — but if you want to hide lookups from your ISP regardless, Technitium supports forwarding everything to an encrypted upstream instead. In Settings → Proxy & Forwarders, add forwarders and set the protocol:

Forwarder: 1.1.1.1, 8.8.8.8
Protocol:  Tls

With Tls selected, Technitium sends every query it does not answer from cache or a local zone to those resolvers over DNS-over-TLS. Https and Quic are the alternatives if your network supports them. Note the trade-off: forwarding disables full recursion, so DNSSEC validation still happens on the answer but you are trusting Cloudflare or Google to resolve for you. For a homelab that cares more about ISP snooping than about running the full recursion chain, this is a completely reasonable posture — and it mirrors what AdGuard Home users configure as upstream DoH.

Step 6: Host your own zones

This is the capability that sets Technitium apart from the ad-blocking tools. In the Zones tab, click Add Zone and create a primary zone, for example home.lan. Then add A records for your services:

grafana.home.lan.  A  192.168.1.10
jellyfin.home.lan. A  192.168.1.10

Now every device on your LAN resolves those names without touching the public DNS. If you want the same names to work over Tailscale when you are away from home, point the tailnet’s DNS at this server too, and your internal names follow you everywhere.

Secondary zones let this server act as a slave for zones hosted elsewhere, and conditional forwarders route specific domains to specific servers — useful when a lab VLAN runs its own little DNS. The built-in DNS Client tool in the console lets you query any record type against any server for debugging, which saves a lot of dig gymnastics.

Updates and backups

Updating is the usual Docker dance, since config lives in the config volume:

docker compose pull
docker compose up -d

For backups, the config volume is the entire source of truth — zones, block lists, settings, and the admin account. Copy it with your existing routine (our Restic backup guide covers the pattern), and test a restore before you need it. The logs volume is disposable; keeping logs forever eats disk for no benefit, and the compose file’s DNS_SERVER_LOG_MAX_LOG_FILE_DAYS option handles rotation automatically.

FAQ

Does Technitium replace Pi-hole or AdGuard Home?

Mostly, yes. It does everything both tools do — network-wide blocking, query logs, per-client stats — plus real recursion, authoritative zones, and DHCP. What it lacks is the huge community ecosystem of Pi-hole and the polish of AdGuard’s UI. If blocking is all you want, either dedicated tool is simpler; if you also want to host zones and run a real resolver, Technitium is the stronger base.

Is it safe to expose the web console to the internet?

No. Keep port 5380 LAN-only or behind a reverse proxy with authentication. The DNS ports (53, and optionally 853 for DoT) are the only ones that ever need to be reachable — and even then, only from your own network or VPN, never the open internet.

Can it run on a Raspberry Pi?

Yes. The project ships ARM builds and documents Raspberry Pi support directly. A Pi 4 handles a home network’s DNS load easily; the 100k req/s benchmark mentioned earlier is for beefier hardware and matters only for larger deployments.

How is this different from running BIND or Unbound?

BIND and Unbound are mature, single-purpose DNS daemons with config files and no UI. Technitium wraps the same core capabilities — recursion, authoritative zones, DNSSEC, blocking — in a web console with sane defaults and a config model a homelab operator can actually maintain. BIND still wins for large production deployments with weird requirements; for self-hosting, Technitium gets you further, faster.

Will it break my smart TV or IoT devices?

Rarely. Aggressive block lists occasionally break device activation or telemetry, same as with Pi-hole. The query logs make it easy to spot which domain a device is stuck on, and you can whitelist it in seconds from the same screen.

Wrapping up

One container, one port 53, and a short list of settings turns any homelab host into a real DNS server: recursive resolution with DNSSEC validation, ad and malware blocking, encrypted upstream forwarding, and your own internal zones with proper names. Point the router at it, watch the query logs for a day, and you will have a sharper picture of your network than any dashboard has ever shown you.