Self-hosted app·DNS, network tools and remote access
dnsdist on a Swiss VPS encrypted DNS for a family or an NGO.
Setup, sizing, limits.
- Lua
- Let's Encrypt
- Debian
ALP1·Swiss Alps
In stockRecommended for this use case
- 1 Gbps port10 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $62.99 a year, about 25% less
- No KYC
- Crypto only
- Swiss jurisdiction
ALP1 · Swiss Alps · Our own hardware, under Swiss law, paid in crypto
- 2 vCPU, 2 GB RAM
- 80 GB NVMe local storage
- 10 TB transfer on a 1 Gbps port
- DDoS protection included
- Swiss jurisdiction, outside the EU
01/06
Short answer.
Yes, dnsdist runs comfortably on our smallest plan. A Cloud VPS Starter in ALP1 (2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB of monthly transfer on a 1 Gbps port, $6.99 a month) is more machine than a household or a small organisation will use, with Unbound on the same server doing the actual resolving. Deploy it with Debian 13, then install dnsdist 2.1 from the PowerDNS repository rather than the older version Debian ships.
What matters more than sizing is what you expose. Publish DNS over TLS on port 853 and DNS over HTTPS on port 443, and keep port 53 closed to the internet. A resolver that answers plain UDP from anyone is found by scanners within days and used to reflect traffic at third parties, which is the quickest way for a family project to become an abuse case.
02/06
What dnsdist is and who runs it.
dnsdist is an open-source DNS load balancer and policy engine maintained by PowerDNS, part of Open-Xchange. It does not resolve names itself. It accepts queries over UDP, TCP, DoT, DoH, DoQ and DoH3, applies rules such as rate limits or drops, keeps an optional packet cache, and forwards what is left to one or more backends. Large operators put it in front of resolver fleets. In self-hosting circles (r/selfhosted, r/pihole) it usually appears as the encrypted front door for a Pi-hole or an Unbound that only speaks plain DNS, which is the setup this page describes.
The versions matter here. When we checked on 5 November 2026, the supported release train was 2.1 (latest 2.1.3, released 12 October 2026), 2.0 was on critical fixes until 2 July 2027, and 1.9 had been end of life upstream since 21 July 2026. Debian 13 still ships 1.9, patched by Debian's security team (1.9.16-0+deb13u1 in August 2026), so it works but lacks the YAML configuration format that 2.x introduced. Since 2.1, dnsdist looks for dnsdist.yml before the old Lua dnsdist.conf, and incoming DoH is handled by nghttp2 alone, which means HTTP/2 only.
If all you want is ad blocking with a web interface, AdGuard Home or our private DoH server guide is less work and we would point you there. dnsdist earns its place when you want Unbound's validating recursion behind a front end whose every rule you wrote, or when an NGO needs per-client rate limits and room to add a second backend later.
Our servers are in Switzerland and answer to Swiss law. We act only on orders from competent Swiss authorities, and a request from abroad has to pass through one of them first.
03/06
Requirements and sizing.
| Component | What it needs | On VPS Starter |
|---|---|---|
| dnsdist 2.1 | 1 vCPU is plenty at household scale; TLS handshakes are the main cost | 2 vCPU |
| Unbound | RAM for its caches; 192 MB with the settings below | 2 GB RAM in total |
| Disk | Packages, certificates, a few config files | 80 GB NVMe |
| Network | One IPv4, a hostname, TCP 443 and 853 | 1 IPv4 included, 1 Gbps |
| Port | Protocol | Exposed? |
|---|---|---|
| 853/tcp | DNS over TLS (Android Private DNS uses this) | Yes |
| 443/tcp | DNS over HTTPS (browsers, Windows 11, iOS profiles) | Yes |
| 80/tcp | Let's Encrypt HTTP-01 renewal | Yes, or use DNS-01 instead |
| 22/tcp | SSH | Yes, ideally restricted |
| 53/udp+tcp | Plain DNS | No |
| 127.0.0.1:5335 | Unbound, reached only by dnsdist | Loopback only |
| 853/udp, 443/udp | DoQ, DoH3 | Not by default (see Limits) |
dnsdist runs two threads per DoH bind and stays light otherwise; at household traffic the CPU barely registers. Memory is similarly modest. The dnsdist documentation estimates about a dozen bytes per pre-allocated cache entry and uses 512 bytes as an average response, so the 50,000-entry packet cache below would hold roughly 26 MB when full (theoretical). Unbound's two caches are capped at 192 MB by the settings below, plus its own overhead.
Transfer is not a constraint. As a deliberately generous theoretical case, take a household sending 100,000 queries a day at 1 KB each on the wire, TLS and TCP overhead included: that is about 3 GB a month, and doubling it for Unbound's own lookups gives 6 GB, or 0.06% of the 10 TB included. An NGO of 200 people at 20,000 queries each per day comes to about 240 GB a month on the same assumptions, still under 3%.
Reachability is the part that is genuinely harder elsewhere. Networks that block encrypted DNS mostly do it by name and address, blocking the well-known public resolvers, and a resolver on your own hostname and your own IPv4 is not on those lists unless you publish it. Port 853 is sometimes filtered on hotel and corporate Wi-Fi; port 443 almost never is, which is why we serve both. Latency from ALP1 is short for European users (the network map on our home page estimates about 2 ms to Zurich and 6 ms to Frankfurt, from distance); for a family in Asia, host the resolver in Asia.
04/06
How to deploy it with us.
- 01
1. Order the server and give it a name
Order through the deploy link, which preselects Starter and Debian 13. Opening an account takes an email address and a password, and you pay from a balance topped up in Monero, Bitcoin, USDT, Ethereum, Litecoin or another coin; no-KYC hosting explains what we hold and what we do not. Once the VPS is up, create an A record such as
dns.example.orgpointing to its IPv4. - 02
2. Unbound as the backend
apt update && apt install -y unbound bind9-dnsutils curl certbot# /etc/unbound/unbound.conf.d/dnsdist-backend.conf server: interface: 127.0.0.1 port: 5335 access-control: 127.0.0.0/8 allow qname-minimisation: yes prefetch: yes msg-cache-size: 64m rrset-cache-size: 128mPort 5335 is the one the Pi-hole documentation uses for Unbound, so an existing Pi-hole can later sit between dnsdist and Unbound without renumbering anything. Debian's package validates DNSSEC out of the box, and QNAME minimisation is already Unbound's default; the line is there so the next person to read the file knows it is on. Run
systemctl restart unbound, thendig @127.0.0.1 -p 5335 example.org. Runapt updateonce more afterwards as well, to confirm the VPS's own resolver configuration did not try to follow Unbound off port 53. - 03
3. dnsdist 2.1 from the PowerDNS repository
install -d /etc/apt/keyrings curl -o /etc/apt/keyrings/dnsdist-21-pub.asc https://repo.powerdns.com/FD380FBB-pub.asc echo 'deb [signed-by=/etc/apt/keyrings/dnsdist-21-pub.asc] http://repo.powerdns.com/debian trixie-dnsdist-21 main' \ > /etc/apt/sources.list.d/pdns.list printf 'Package: dnsdist*\nPin: origin repo.powerdns.com\nPin-Priority: 600\n' \ > /etc/apt/preferences.d/dnsdist-21 apt update && apt install -y dnsdist dnsdist --version # should report 2.1.x with yaml support - 04
4. A certificate dnsdist can read
dnsdist does not run as root, while certbot writes keys that only root can read. The documented answer is to copy the files into
/etc/dnsdistfrom a deploy hook. Save this as/usr/local/sbin/dnsdist-cert-hookand make it executable:#!/bin/sh set -e G=_dnsdist # confirm with: systemctl cat dnsdist | grep -E '^(User|Group)=' install -d -m 0750 -o root -g "$G" /etc/dnsdist/tls install -m 0640 -o root -g "$G" "$RENEWED_LINEAGE/fullchain.pem" "$RENEWED_LINEAGE/privkey.pem" /etc/dnsdist/tls/ systemctl restart dnsdistcertbot certonly --standalone -d dns.example.org --deploy-hook /usr/local/sbin/dnsdist-cert-hookA restart every couple of months drops open TLS sessions for a second; clients reconnect on their own.
- 05
5. The configuration
# /etc/dnsdist/dnsdist.yml (dnsdist 2.1) acl: - "0.0.0.0/0" # safe only because no plain port-53 bind exists below binds: - listen_address: "0.0.0.0:853" protocol: "DoT" tls: certificates: - certificate: "/etc/dnsdist/tls/fullchain.pem" key: "/etc/dnsdist/tls/privkey.pem" - listen_address: "0.0.0.0:443" protocol: "DoH" doh: paths: - "/q-REPLACE-WITH-32-RANDOM-CHARACTERS" tls: certificates: - certificate: "/etc/dnsdist/tls/fullchain.pem" key: "/etc/dnsdist/tls/privkey.pem" backends: - address: "127.0.0.1:5335" protocol: "Do53" packet_caches: - name: "pc" size: 50000 pools: - name: "" packet_cache: "pc" query_rules: - name: "DoT without our hostname" selector: type: "And" selectors: - type: "IncomingProtocol" protocol: "DoT" - type: "Not" selector: type: "SNI" server_name: "dns.example.org" action: type: "Drop" - name: "Per-IP rate limit" selector: type: "MaxQPSIP" qps: 50 burst: 200 action: type: "Drop"The default ACL only admits loopback and private ranges, so for phones on mobile networks it has to be opened, and the configuration compensates in three ways. The DoH path works as a shared secret: requests to any other path are refused, and paths never appear in certificate logs. The SNI rule drops DoT connections made by IP address, which is how most scanners arrive. It is weaker than it looks, because every hostname you obtain a certificate for is published in Certificate Transparency logs within minutes; only a wildcard certificate issued over DNS-01 keeps the exact label out of them. The rate limit is the control that actually protects you. Remember that a household behind one router shares a single IPv4, so 50 queries a second covers the whole family, not each device. Check the file with
dnsdist --check-config, thensystemctl restart dnsdist. - 06
6. Firewall, test, devices
On the server, allow 22, 80, 443 and 853/tcp inbound with nftables or ufw, and nothing else. From your own computer,
dig +tls @dns.example.org example.orgtests DoT anddig +https=/q-… @dns.example.org example.orgtests DoH. On Android 9 or later, set Private DNS to the hostname. On iOS and macOS, install an encrypted-DNS configuration profile; on Windows 11, in Firefox and in Chrome, enter the full DoH URL with its path. - 07
Docker
We recommend the packages for this one. The official image (
powerdns/dnsdist-21) reads Lua files from/etc/dnsdist/conf.d, its newest tag on Docker Hub when we checked was 2.1.2, one release behind the packages, and on a bridge network the container cannot reach an Unbound bound to the host's loopback without extra plumbing.
05/06
What it costs.
| Item | Price |
|---|---|
| Cloud VPS Starter, monthly | $6.99 |
| Cloud VPS Starter, yearly | $62.99 (about $5.25 a month) |
| Daily backups, optional (+20 %) | $8.39 a month in total (theoretical rounding) |
| Extra IPv4, optional | $2 a month |
The plan includes 2 vCPU, 2 GB RAM, 80 GB NVMe, 10 TB of transfer a month at 1 Gbps, one IPv4, full root and the network-level DDoS protection that comes with every plan. VPS traffic is metered against that 10 TB, unlike our dedicated servers. We would skip the backup option: the whole server is two text files and a hook script, which belong in your own notes or a git repository. The extra IPv4 is worth it only if you want a website on port 443 of the same machine, since dnsdist now speaks HTTP/2 only and putting nginx in front of it needs a grpc_pass workaround. As a theoretical example, the minimum $25 top-up covers three months; a $50 top-up earns the 5% bonus, giving $52.50, or seven months. The unused paid part of a top-up is refundable within 14 days. All plans are on the pricing page and the Cloud VPS page.
06/06
Limits and acceptable use.
Our acceptable use policy lists attacks on other networks among its hard limits, and an open UDP resolver is how a well-meant family server ends up reflecting floods at someone else. If you need plain DNS for a home router, restrict it to that router's address in a separate firewall rule, or carry it inside WireGuard instead. Answering other people's queries with forged records, for phishing or to hijack domains you do not control, is not allowed either.
Patching is yours: we do not manage the software inside a VPS. dnsdist published several security advisories in 2026, one of them (CVE-2026-24029) a DoH ACL bypass when early ACL checking is switched off, and several (CVE-2026-24030, CVE-2026-33254 and CVE-2026-40211 among them) about memory exhaustion in DoQ and DoH3. DoQ and DoH3 are off unless you configure them, and on a 2 GB server we would leave them off. Add the PowerDNS repository to unattended-upgrades' allowed origins, or follow the dnsdist announcements and upgrade by hand.
On data protection, if your NGO runs the resolver for its staff, the NGO is responsible for those query records under the revised Swiss Federal Act on Data Protection, in force since 1 September 2023. Neither program writes queries to disk by default: Unbound does not log them at its default verbosity, and dnsdist keeps recent queries only in an in-memory ring buffer (10,000 by default, according to its maintainers), readable from its console. Our side of the wire sees TLS on ports 443 and 853, not the names. Unbound's own lookups towards authoritative servers travel unencrypted, as all recursion does today; QNAME minimisation limits what each server learns. The European Commission reconfirmed on 15 January 2024 that Switzerland's level of protection is adequate, so EU organisations need no extra transfer safeguards to host here. We act on decisions of competent Swiss authorities, and as of 31 October 2026 the US had CLOUD Act executive agreements only with the United Kingdom and Australia; our offshore hosting page covers the procedure without promising more than it is.
ALP1 is one site. Our 99.9% uptime SLA allows, in theory, about 43 minutes of downtime in a 30-day month, and Android's Private DNS fails closed: if the hostname is unreachable, the phone resolves nothing until you switch the setting off. Families should know where that switch is.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterRecommendedStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| SummitDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Summit |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions people ask first.
Short answers about running this in ALP1. If yours is not here, open a ticket from your panel.
Does dnsdist resolve DNS names by itself?
No. dnsdist receives, filters, caches and forwards queries; something else has to resolve them. On this page that is Unbound on the same VPS, listening on 127.0.0.1:5335. You can also point dnsdist at an upstream DoT or DoH resolver, but then that provider sees every query, which defeats much of the point.
dnsdist, AdGuard Home or Technitium: which should I run?
For a household that wants ad blocking and a web interface, AdGuard Home or Technitium is simpler and serves DoT and DoH by itself. dnsdist is the better choice when you want precise control over who may query and at what rate, a validating Unbound behind it, or several backends, for example a filtered pool for children's devices and an unfiltered one for adults.
Can I use the dnsdist package that comes with Debian 13?
It works, and Debian keeps patching it (1.9.16-0+deb13u1 in August 2026), but upstream support for 1.9 ended on 21 July 2026 and the YAML configuration shown here needs 2.x. We recommend the trixie-dnsdist-21 repository from PowerDNS.
What happens to my family's DNS if the VPS goes down?
Devices set to strict encrypted DNS, such as Android with a Private DNS hostname, stop resolving until the server is back or the setting is switched off. Browsers configured for DoH usually fall back to the network's resolver unless set to a strict mode. Our SLA is a 99.9% commitment, not a measurement; if DNS is critical, keep a second resolver with another provider and know how to switch.
Do you see or keep my DNS queries?
Traffic between your devices and the VPS is encrypted, so the network sees TLS connections to ports 443 and 853, not the names. What the VPS keeps is set by your configuration: by default dnsdist holds recent queries in memory only and Unbound does not log them. If you turn on query logging, you become responsible for those records under Swiss data protection law.
Can I keep port 53 open for my home router?
Only for a fixed address. Restrict port 53 to your router's public IPv4 in a separate firewall rule and add that address to the dnsdist ACL. With a dynamic home address that becomes fragile, and running the router's DNS through a WireGuard tunnel to the VPS is the cleaner option.
Sources
Every fact on this page, with its source
Checked 31 Oct 2026 unless noted.
Swiss law and authorities
- Revised FADP in force since 1 September 2023Fedlex, RS 235.1
EU and other countries
- EU adequacy for Switzerland reconfirmed 15 January 2024European Commission, adequacy decisions
- CLOUD Act executive agreements only with the United Kingdom and AustraliaUS Department of Justice
Industry, providers and software
- Debian 13 security update to dnsdist 1.9.16-0+deb13u1Debian package tracker
Other references
- dnsdist 2.1.3 released 12 October 2026; 2.0.11 the same day; DoQ/DoH3 and DoH ACL CVEs of 2026 with fix versionsdnsdist changelog
- Supported train 2.1, 2.0 end of life 2 July 2027, 1.9 end of life since 21 July 2026dnsdist end of life statements
- dnsdist.yml read first since 2.1, h2o removed and DoH limited to HTTP/2, --check-configdnsdist upgrade guide
- Default ACL limited to loopback and private ranges, applied to UDP, TCP, DoT and DoHdnsdist access control
- YAML binds for DoT and DoH, DoH paths, certificate permissions and certbot deploy hooks, nginx grpc_pass workarounddnsdist DoH guide
- Packet cache YAML, about a dozen bytes per pre-allocated entry, 512-byte average responsednsdist caching guide
- MaxQPSIP, SNI and IncomingProtocol selectors (the last added in 2.1.0)dnsdist YAML selector reference
- Ring buffer default of 10,000 entriesmailman.powerdns.com
- trixie-dnsdist-21 repository, signing key and pinPowerDNS repositories
- Newest powerdns/dnsdist-21 tag 2.1.2Docker Hub
- Starter specifications, yearly price, DDoS protection on every plan, estimated latencies from ALP1, 99.9% SLA, acceptable use limitsswitzerland-hosting.com
ALP1·Swiss Alps
Your server in the Alps, ready when you are.
Cloud VPS start at $6.99 a month and are usually set up within minutes of your order.
