Self-hosted app·DNS, network tools and remote access
Private DoH server on a Swiss VPS.
Run a private DoH server for your family or NGO: AdGuard Home on Debian 13 in ALP1, ClientID allowlist, no public port 53.
- AdGuard Home
- Debian
- Docker
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/07
Short answer.
Yes. A private DNS-over-HTTPS resolver for a household or a small NGO runs comfortably on Cloud VPS Starter, our smallest VPS, at 6.99 USD a month with Debian 13 in ALP1, our site in the Swiss Alps. One vCPU is more than the job needs. What decides whether the setup is sound is the word "private". A resolver that answers anyone is an open resolver; scanners find those quickly and use them to amplify other people's DDoS traffic, and on our network that is an abuse case rather than a configuration detail. Keep port 53 closed to the internet, serve only DoH and DoT, and refuse every client that does not present an identifier you issued. AdGuard Home does all of that without extra software.
02/07
What a private DoH server is, and what runs it.
DoH, standardised as RFC 8484 in October 2018, carries ordinary DNS messages inside HTTPS requests, conventionally to /dns-query on port 443. To anyone on the path it looks like a TLS session with a web server, so the hotel Wi-Fi, the mobile carrier and the ISP lose sight of which names you look up; only the resolver at the far end sees them. Running your own resolver changes who that far end is. DoT does the same job over a dedicated port, 853, which is easier to block but is what Android's built-in Private DNS setting speaks, so most private deployments serve both.
Two groups have a clear use for one. Families usually want ad and tracker blocking that follows the phones out of the house, which a Pi-hole on the home LAN cannot do. NGOs usually have the opposite blocking problem: the well-known public resolvers are among the first addresses that restrictive networks and some national filters cut off, and staff on the road fall back to plaintext DNS from whatever network they are on. An endpoint on your own domain, on an IP nobody has catalogued as a resolver, tends to stay reachable longer. That is a delay, not immunity. The hostname is still visible in the TLS handshake and the IP in every packet, so a censor who finds your endpoint can block it like any other host, ours included.
Three pieces of software come up again and again on r/selfhosted and r/pihole. AdGuard Home, an open-source Go binary from AdGuard, serves DoH, DoT, DNS-over-QUIC and DNSCrypt natively, identifies devices by ClientID and has an allowlist mode meant for exactly this case; it is what we recommend. Unbound from NLnet Labs has served DoH since version 1.12.0 (October 2020), over HTTP/2 only and only when built against libnghttp2 (check unbound -V). It is leaner and has no web interface, and it has no per-device identity, although a non-default http-endpoint path works as a single shared secret. Pi-hole answers plain DNS and has always needed a companion process for encryption. The most-copied companion, cloudflared proxy-dns, was removed from cloudflared in release 2026.2.0, so many older guides now fail on a fresh install, and that setup only ever encrypted the hop from Pi-hole to its upstream. Serving DoH to your own devices needs yet another proxy in front of Pi-hole, and at that point AdGuard Home is the shorter path.

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/07
Requirements and sizing.
A resolver for a few dozen devices is a small workload. The figures marked theoretical are calculations from the stated assumption, not measurements on our hardware; your own query log will give you real numbers within a week.
| Resource | What the resolver needs | Comment |
|---|---|---|
| CPU | 1 vCPU | Assume a busy household at 20,000 queries a day (theoretical): about 0.23 queries per second on average. Peaks are many times that and still small. |
| RAM | AdGuard Home plus filter lists held in memory | Grows with the blocklists you enable. |
| Disk | Binary, configuration, query log, statistics | Short log retention keeps it small. |
| Public ports | 443/tcp (DoH), 853/tcp (DoT), 853/udp (DoQ, optional), 22/tcp (SSH) | |
| Closed to the internet | 53/udp and 53/tcp (plain DNS), 3000/tcp and 80/tcp (admin interface) | Reach the admin interface through an SSH tunnel. |
| Name | A domain with an A record, plus a wildcard if you want per-device names over DoT | Needed for the certificate. |
| Plan | Cloud VPS Starter | 2 GB RAM, 80 GB NVMe |
If the same server will also carry a VPN for travelling staff, the resolver still fits beside it; our guide to VPN servers covers that half. Larger plans are on the pricing page, but move up on measured memory pressure, not on instinct.
04/07
Deploying it on Cloud VPS Starter.
Order matters more than any single command: firewall before the service exists, certificate before encryption is switched on, allowlist before you hand out a URL. Replace dns.example.org with your own name throughout.
- 01
1. Order and name the server
Order Cloud VPS Starter with Debian 13 from the deploy link. Debian 13 "trixie" was released on 9 August 2025, with regular security support until August 2028 and LTS until June 2030, which is longer than most families keep a resolver running. At your DNS host, create an A record for
dns.example.orgpointing at the VPS address, and a wildcard*.dns.example.orgpointing at the same address if Android devices will use per-device names over DoT. - 02
2. Firewall first
apt update && apt install -y nftables gnupg curl certbot bind9-dnsutilsWrite this to
/etc/nftables.conf, then runsystemctl enable --now nftables:#!/usr/sbin/nft -f flush ruleset table inet filter { chain input { type filter hook input priority 0; policy drop; ct state established,related accept iif lo accept meta l4proto { icmp, ipv6-icmp } accept tcp dport { 22, 443, 853 } accept udp dport 853 accept } }Port 53 is missing on purpose. If you administer from a fixed address, narrow port 22 to it.
- 03
3. Install AdGuard Home and verify the binary
cd /opt curl -fsSLO https://github.com/AdguardTeam/AdGuardHome/releases/latest/download/AdGuardHome_linux_amd64.tar.gz tar -xzf AdGuardHome_linux_amd64.tar.gz gpg --keyserver keys.openpgp.org --recv-key 28645AC9776EC4C00BCE2AFC0FE641E7235E2EC6 gpg --verify AdGuardHome/AdGuardHome.sig cd AdGuardHome && ./AdGuardHome -s installUse the arm64 archive if
uname -mreportsaarch64. The signature check is the one AdGuard documents; a good signature fromdevteam@adguard.comwith that key is what you want to see. An official Docker image exists, but on a single-purpose VPS the binary as a system service is one layer fewer, and AdGuard disables its built-in updater inside Docker.On first start the setup wizard listens on port 3000 on all interfaces, and the firewall is what keeps it to you. From your own machine, run
ssh -L 3000:127.0.0.1:3000 root@<vps-address>and openhttp://127.0.0.1:3000. In the wizard, bind both the admin interface and the plain-DNS listener to127.0.0.1, so plain DNS exists only for the server itself and the admin interface is only ever reached through the tunnel. - 04
4. Get a certificate
certbot certonly --manual --preferred-challenges dns \ -d dns.example.org -d '*.dns.example.org'A wildcard certificate requires the DNS-01 challenge. Manual mode means repeating the TXT-record dance at every renewal, and Let's Encrypt certificates are short-lived, so this is a chore you will eventually forget; install the certbot plugin for your DNS host, or use lego, and let renewal run unattended. AdGuard Home watches certificate files given by path and reloads them when they change, so renewals need no restart.
- 05
5. Encryption, ClientIDs and the allowlist
Under Settings → Encryption, enable encryption, set the server name to
dns.example.org, keep HTTPS on 443 and DoT on 853, add DoQ on 853 if you want it, and point the certificate and key fields at/etc/letsencrypt/live/dns.example.org/fullchain.pemandprivkey.pem. Then, under Settings → Client settings, create one persistent client per device with a ClientID. Each device gets its own address:DoH: https://dns.example.org/dns-query/anna-phone DoT: anna-phone.dns.example.orgLast, under Settings → DNS settings → Access settings, list those ClientIDs in Allowed clients. This switches AdGuard Home into allowlist mode, which its documentation recommends for public instances with a known set of clients, and anything without a listed ClientID is refused. A ClientID is a secret in a URL rather than a password: it travels inside TLS, but it also sits in browser settings and on whichever laptop it was typed into. A family can use readable names; an NGO should use random strings per device and delete the client the day a laptop goes missing.
- 06
6. Choose the upstream, set the log retention
AdGuard Home forwards cache misses to an upstream, and there are two choices we would defend. The first is Quad9 over DoH (
https://dns.quad9.net/dns-query, bootstrap9.9.9.9): Quad9 is run by a foundation that moved to Zurich in 2021 and sits under the supervision of the Federal Data Protection and Information Commissioner, so your queries stay under Swiss law from device to answer. The second is a local Unbound on127.0.0.1:5335doing full recursion, with AdGuard Home pointed at it. That removes the third-party resolver entirely, at a price: recursive queries to authoritative servers leave the VPS unencrypted and carry your server's IP, which for a household of four is close to a household identifier. For a family we suggest Quad9; for an NGO that does not want any outside resolver to see its aggregate lookups, Unbound.Under Settings → General settings you set how long the query log and the statistics are kept. A log keyed to ClientIDs is a record of who looked up what, so keep 24 hours for troubleshooting or switch it off. It lives on your VPS, and the decision is yours.
- 07
7. Test, then hand out addresses
dig +https=/dns-query/anna-phone @dns.example.org example.org # answers dig +https @dns.example.org example.org # refused: no ClientID dig @dns.example.org example.org # times out: port 53 closedFirefox and Chrome accept a custom DoH address in their settings, and Windows supports DoH natively from build 19628. iOS 14 and macOS Big Sur onward use a configuration profile, which AdGuard Home generates under Setup Guide → DNS Privacy. On Android, Private DNS takes the DoT hostname
anna-phone.dns.example.organd nothing else; it will not accept an IP address or a DoH URL.
05/07
Cost.
| Item | Price |
|---|---|
| Cloud VPS Starter, Debian 13, ALP1 | 6.99 USD per month |
| Same, over 12 months | 83.88 USD (theoretical: 12 × 6.99) |
| Domain name | Not included; from your registrar |
For a family of five that is about 1.40 USD per person per month (theoretical: 6.99 ÷ 5). The price covers the VPS, the Debian 13 image and the traffic; the software is free and the maintenance is yours. Ordering is no-KYC: an email address is enough, and we accept crypto, including from business customers, which matters to NGOs whose banks are slow with foreign card payments. Account top-ups carry a bonus, and the unused balance is refundable within 14 days.
06/07
Swiss law what it covers, and what it does not.
A query log keyed to anna-phone is data about Anna. The revised Federal Act on Data Protection, in force since 1 September 2023, applies to it as it does to any other personal data you hold, and for an NGO that means telling staff the resolver exists and what it keeps. Organisations based in the EU can host such logs here without extra transfer safeguards: on 15 January 2024 the European Commission confirmed that Switzerland continues to provide an adequate level of protection. If you forward to a US resolver instead of Quad9, the transfer is lawful when the company is certified under the Swiss-U.S. Data Privacy Framework, which Switzerland has recognised since 15 September 2024, but your queries then sit under US law at the upstream.
On cross-border access, the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That closes one route; it is not a promise about every other one, and it does nothing for queries you send to a US upstream. The revision of the Swiss surveillance ordinance (VÜPF/OSCPT) put to consultation in January 2025 is not in force, and the Federal Council has announced a second consultation; check its status before you plan around it. Switzerland Hosting is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen), and we act on decisions of a competent Swiss authority. The wider picture is on our offshore hosting and jurisdiction page.
One limit applies to every VPS host, ours included. Your DoH sessions terminate inside your VM, so we do not see query contents on the wire, but we see network metadata (addresses, ports, volumes), and whoever operates a hypervisor can in principle read a guest's memory. If that is in your threat model, the answer is hardware you control, such as a dedicated server, not a different VPS.
07/07
Limits and acceptable use.
A resolver for yourself, your family or your organisation, with whatever blocklists you like, is exactly what this plan is for.
You are the operator of the resolver, which makes a few things your job. AdGuard Home ships security fixes in point releases several times a year (0.107.78 in July 2026 was one), so update it, and keep Debian patched. Keep SSH and the admin interface off the open internet, as above. If the resolver serves staff or volunteers, you are the controller of its logs under the FADP: set a retention period and say what it is. Complete complaints we receive about your server are forwarded to you to resolve or answer. For anything else, open a support ticket from the client panel.
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 a private DoH server hide my browsing from my ISP?
Only the DNS part. Your ISP still sees the IP addresses you connect to and, in most TLS connections, the site name in the handshake, unless the site supports Encrypted Client Hello. Hiding the whole connection takes a VPN; our guide to VPN servers can run on the same server.
Will it work on Android without installing an app?
Yes, through Settings → Private DNS, which uses DoT on port 853 and takes a hostname such as anna-phone.dns.example.org. That is why the wildcard certificate is worth the effort. Some corporate and hotel networks block 853; in that case an app that speaks DoH, or Chrome's own secure-DNS setting for the browser alone, still works over 443.
Can I skip the domain and use the server's IP address?
Not in practice. Clients validate the certificate against a name, and Android's Private DNS field accepts only hostnames. A domain costs a few francs a year and saves you from fighting every client.
Is Cloud VPS Starter enough for an NGO with 50 staff?
Probably. At 4,000 queries per device per day, 50 devices make 200,000 queries a day, about 2.3 per second on average (theoretical). CPU will not be the constraint; memory with very large blocklists might be, and it is the figure to watch. If the server also carries a VPN and other services, compare plans on the pricing page.
What happens if a ClientID leaks?
Delete that client in AdGuard Home, and requests carrying its ID are refused from then on. Issue the device a new ID. This is the main practical advantage of ClientIDs over a single shared secret path: you revoke one device, not everyone.
Do you keep my DNS queries?
Your queries arrive inside TLS that terminates in your own AdGuard Home, and the query log exists only if you enable it, on your VPS. At the network level we see what any host sees: addresses, ports and traffic volumes.
Sources
Every fact on this page, with its source
Checked 3 Nov 2026 unless noted.
Swiss law and authorities
- Swiss National Cyber Security Centre, Quad9 moves to Switzerland, 17 Feb 2021 (Zurich foundation, FDPIC supervision)ncsc.admin.ch
- Fedlex, RS 235.1, revised Federal Act on Data Protection, in force since 1 Sep 2023fedlex.admin.ch
- Federal Office of Justice, recognition of the Swiss-U.S. Data Privacy Framework from 15 Sep 2024bj.admin.ch
- admin.ch, revision of the surveillance ordinance (VÜPF/OSCPT): not in force as of 31 Oct 2026, second consultation announcedadmin.ch
EU and other countries
Industry, providers and software
- AdGuard Home wiki, Clients (ClientID URL and hostname formats)github.com
- AdGuard Home releases, v0.107.78, 13 Jul 2026 (security fixes)github.com
- Cloudflare changelog, cloudflared proxy-dns command will be removed starting February 2, 2026, 11 Nov 2025developers.cloudflare.com
- Cloudflare blog, Enable Private DNS with 1.1.1.1 on Android 9 Pie (Private DNS uses DoT and requires a hostname)blog.cloudflare.com
- Debian, Debian 13 "trixie" released, 9 Aug 2025debian.org
Other references
- IETF, RFC 8484, DNS Queries over HTTPS (DoH), October 2018rfc-editor.org
- NLnet Labs, Unbound 1.12.0 released, 8 Oct 2020 (DoH support, nghttp2 requirement)nlnetlabs.nl
- Unbound documentation, DNS-over-HTTPS (HTTP/2 only, http-endpoint, 404 on other paths)unbound.docs.nlnetlabs.nl
- AdGuard Knowledge Base, Getting started (install as a service, first-start ports, wizard on 0.0.0.0:3000)adguard-dns.io
- AdGuard Knowledge Base, Setting up AdGuard Home securely (allowlist mode with ClientIDs, disabling plain DNS, release signature key)adguard-dns.io
- AdGuard Knowledge Base, DNS encryption (DoH/DoT/DoQ, certificates, automatic reload, client platforms)adguard-dns.io
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.
