On this page
- What makes Technitium different from a plain resolver?
- How do you free port 53 on Ubuntu before installing?
- How do you install Technitium DNS Server?
- How do you reach the console without exposing it?
- How do you stop the server from becoming an open resolver?
- How do you add block lists?
- How do you host a local or public zone?
- How do you test resolution and filtering?
- How do you update, back up and troubleshoot it?
- Questions
What makes Technitium different from a plain resolver?
Technitium DNS Server bundles several roles that usually need separate programs. It resolves names recursively with DNSSEC validation, it blocks domains from subscription lists, it hosts primary and secondary zones, and it speaks encrypted protocols (DNS over TLS, HTTPS and QUIC) once you give it a certificate. Everything is configured from a browser, and an HTTP API mirrors the console for automation.
The software is written in C# and runs on the .NET runtime, so it needs a little more memory than Unbound or Pi-hole. Plan for around 300 to 500 MB in use with a few large block lists loaded. The examples assume the server address 198.51.100.24, a home address 203.0.113.50 and WireGuard clients in 10.8.0.0/24.
How do you free port 53 on Ubuntu before installing?
Ubuntu runs a local stub resolver that holds 127.0.0.53:53, and Technitium wants to bind port 53 on every address. Turn the stub off and point the system at the real resolver list before running the installer:
sudo mkdir -p /etc/systemd/resolved.conf.d
printf "[Resolve]\nDNSStubListener=no\n" | sudo tee /etc/systemd/resolved.conf.d/no-stub.conf
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo systemctl restart systemd-resolved
sudo ss -lunp | grep ":53 "An empty result from ss means port 53 is free. Debian 12 and 13 do not run that stub by default, so you can skip this step there. Confirm that name resolution still works with getent hosts example.net; the install script needs it to download packages.
How do you install Technitium DNS Server?
The project publishes a shell installer that fetches the right .NET runtime and the latest server build, places it under /opt/technitium/dns and registers the service. Download the script, read it, then run it:
sudo apt update && sudo apt install -y curl dnsutils
curl -sSL https://download.technitium.com/dns/install.sh -o technitium-install.sh
less technitium-install.sh
sudo bash technitium-install.shWhen it finishes, the service is enabled and running:
systemctl status dns --no-pager
sudo ss -lntup | grep -E ":53 |:5380 "Configuration and zone data are stored in /etc/dns. The installed version appears in the console footer and on the About page.
How do you reach the console without exposing it?
Keep port 5380 closed in the firewall and forward it over SSH from your own computer:
ssh -L 5380:127.0.0.1:5380 deploy@198.51.100.24Browse to http://localhost:5380. Sign in as admin and set a long password at the first prompt. Current releases ask for a new password on first login; if your build still accepts the old default of admin, change it at once under the user menu. Enable two-factor authentication for the admin account in the same menu if you plan to keep the console reachable over the VPN.
WireGuard users can also open http://10.8.0.1:5380 through the tunnel, which avoids the SSH step on phones and tablets.
How do you stop the server from becoming an open resolver?
Recursion decides who may ask about names outside your own zones, and it must list only trusted sources. Open Settings, then the Recursion tab, and choose Use Specified Network ACL. Enter the allowed networks one per line:
127.0.0.0/8
::1
10.8.0.0/24
203.0.113.50The default setting allows recursion only from private address ranges, which already covers WireGuard clients but would not cover a public home address. Then mirror the same idea in the firewall so strangers cannot even reach the port:
sudo ufw default deny incoming
sudo ufw allow OpenSSH
sudo ufw allow from 203.0.113.50 to any port 53
sudo ufw allow in on wg0 to any port 53
sudo ufw allow in on wg0 to any port 5380 proto tcp
sudo ufw enableIf you later host public zones here, opening port 53 to everyone is acceptable only while recursion stays on the ACL above, because the server then answers strangers for your zones alone. See the ufw guide for rule ordering.
How do you add block lists?
Filtering lives under Settings, Blocking. Tick Enable Blocking, pick a blocking type (an unspecified address such as 0.0.0.0, or an NXDOMAIN answer), and use Quick Add to insert well-known lists, or paste list URLs of your own. Set the update interval, save, and the server downloads the lists in the background.
For a single troublesome name, the Allowed and Blocked pages take individual domains. The Dashboard then shows total, blocked and cached queries with the top clients, which makes it easy to spot a device that calls home too often.
How do you host a local or public zone?
Open Zones, click Add Zone, enter a name such as home.example.net and choose Primary Zone. Add records from the zone page: an A record nas pointing to 10.8.0.5, for instance, lets VPN clients reach a device by name. Primary zones can be signed with DNSSEC from the zone menu, and secondary zones pull copies from another server through zone transfers.
For a public domain, register the name servers at your registrar and allow port 53 from everywhere, as explained above. If you only want simple A and AAAA records at your registrar instead, follow the DNS records tutorial.
How do you test resolution and filtering?
Use dig from an allowed client and from the server itself:
dig @10.8.0.1 example.net +short
dig @10.8.0.1 doubleclick.net
dig @127.0.0.1 example.net +dnssec | grep flags
dig @127.0.0.1 nas.home.example.net +shortThe first query returns real addresses, the second shows the blocking answer when that domain is on one of your lists, the third shows the ad flag from DNSSEC validation, and the fourth returns your own record. From a host outside the ACL, recursion for example.net must be refused or time out. The dig guide explains each part of the answer.
How do you update, back up and troubleshoot it?
Running the install script again upgrades an existing installation in place and keeps the data in /etc/dns. The console also shows a notice when a new release is out.
curl -sSL https://download.technitium.com/dns/install.sh | sudo bash
sudo systemctl restart dns
sudo journalctl -u dns -n 50 --no-pagerSettings include a Backup Settings button that downloads a zip of configuration, zones and lists; keep a copy off the server. Typical problems: the service fails to start because port 53 is taken (repeat the stub step), clients are refused because their address is missing from the recursion ACL, or memory runs low with very large lists, in which case move to a bigger plan with the migration tutorial.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Technitium DNS Server
Can Technitium replace both Pi-hole and Unbound?
Yes. It filters, caches and resolves recursively with DNSSEC on its own, so one service covers what those two do together. Some people still prefer separate tools for a smaller footprint.
Does it support encrypted DNS for phones?
It does. Add a certificate in PFX format under Settings, Optional Protocols, and enable DNS over TLS or HTTPS. Keep the recursion ACL in place, since encryption does not limit who can ask.
How much RAM should I plan for?
A plan with 2 GB is comfortable once several block lists and logging are active. Small setups run in 1 GB, but the .NET runtime leaves less headroom there.
Can I manage it from scripts?
Every console action has an HTTP API call that takes a token, which you create under the user menu. Call it through the SSH tunnel or the VPN rather than opening port 5380.
Which systems does this guide cover?
Ubuntu 24.04 and 22.04, plus Debian 12 and 13. The install script is written for those families, so pick one of them at deploy time.
More in VPN and private DNS
- WireGuard VPN server (manual setup)
- wg-easy WireGuard web UI
- WGDashboard for WireGuard
- OpenVPN server with easy-rsa
- Pritunl VPN server
- OpenConnect VPN server (ocserv)
- AdGuard Home DNS filter
- Pi-hole DNS sinkhole
- Unbound validating resolver
- IPsec VPN with strongSwan
- Squid forward proxy with authentication
- Shadowsocks proxy server
- Authoritative DNS with BIND 9