Self-hosted app·DNS, network tools and remote access
AdGuard Home on a Swiss VPS.
AdGuard Home VPS in the Swiss Alps: encrypted DNS for a family or NGO on Cloud VPS Starter at $6.99/mo, set up without creating an open resolver.
- AdGuard Home
- 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/06
What AdGuard Home is, and who runs it.
AdGuard Home is a DNS server that answers your devices' lookups and refuses the ones matching its blocklists: ads, trackers, malware domains, and adult content if you switch on parental control. It is written in Go, published under GPL-3.0, and developed by Adguard Software Ltd, the company behind the AdGuard ad blocker and the public AdGuard DNS service, which shares much of its code. The current stable release is v0.107.79, published on 18 August 2026 with, among other fixes, hardening against resource exhaustion over DNS-over-QUIC. A v1.0.0 beta followed on 30 September 2026. On a server that other people's phones depend on, stay on the stable channel and let the beta settle.
People in r/pihole and r/selfhosted usually weigh it against Pi-hole. On a VPS the deciding difference is that AdGuard Home serves DoH, DoT and DoQ by itself and has access settings that decide which clients it answers at all; AdGuard's own comparison notes that Pi-hole needs additional software for encrypted serving and has no equivalent of the access list. Those two features are the reason to host it remotely in the first place.
DNS filtering also has a ceiling that no hosting changes. Ads delivered from the same domain as the content, YouTube being the usual example, cannot be blocked by a DNS server, and a teenager with a VPN app or a browser set to its own DoH resolver will simply go around it. For a household or an office it is a sensible default, not enforcement.

02/06
Requirements and sizing.
AdGuard maintains a Raspberry Pi guide, which tells you the order of magnitude, and nothing a family or a small NGO does pushes it past Cloud VPS Starter. The 80 GB NVMe disk leaves a great deal of room either way.
Transfer is not the constraint either. As a theoretical estimate, a household with 25 devices making 30,000 lookups a day, at roughly 1 KB per encrypted exchange including TLS and HTTP framing, sends about 0.9 GB a month to its devices; upstream lookups for cache misses add at most the same again. That is under 2 GB of the plan's 10 TB, about 0.02 %. An NGO with 200 staff at 1,500 lookups each per day comes to roughly 18 GB a month on the same assumptions.
What the VPS does not supply is a domain name and a certificate. You need an A record such as dns.example.org pointing at the server, and a TLS certificate for it. If you want per-device ClientIDs over DNS-over-TLS, which is what Android's Private DNS setting uses, the certificate must also cover *.dns.example.org. That means a wildcard, and with Let's Encrypt a DNS-01 challenge.
| Port | Protocol | Purpose | Expose publicly? |
|---|---|---|---|
| 53 | UDP, TCP | Plain DNS | Only to your own fixed IPs, or not at all |
| 443 | TCP, UDP | DNS-over-HTTPS (HTTP/2 and HTTP/3) and the HTTPS admin interface | Yes |
| 853 | TCP | DNS-over-TLS | Yes |
| 853 | UDP | DNS-over-QUIC | Optional |
| 80 | TCP | Admin interface over plain HTTP | No; reach it through SSH |
| 3000 | TCP | First-run setup wizard | Never |
| 5443 | TCP, UDP | DNSCrypt | Only if you use it |
| 67, 68 | UDP | DHCP server | Not on a VPS |
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
Deploying it on Cloud VPS Starter.
Order Cloud VPS Starter with Debian 13 from the deploy page and point your DNS name at the address it receives. Put the firewall up before AdGuard Home exists, so there is no window in which it answers strangers. Replace 198.51.100.7 with the public IP of your home or office if you want plain DNS from there; if not, delete those two lines.
apt update && apt install -y nftables curl certbot#!/usr/sbin/nft -f
# /etc/nftables.conf
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 accept
tcp dport { 443, 853 } accept
udp dport { 443, 853 } accept
ip saddr 198.51.100.7 udp dport 53 accept
ip saddr 198.51.100.7 tcp dport 53 accept
}
}Load it with systemctl enable --now nftables, and open a second SSH session before closing the first; a typo in a drop-policy ruleset is the usual way people lock themselves out.
Next, check that nothing already holds port 53 (ss -lntup | grep ':53 ' should print nothing; if systemd-resolved shows up, AdGuard's FAQ explains how to turn off its stub listener). Then install the native binary with AdGuard's script, which puts it in /opt/AdGuardHome and registers a systemd service:
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sh -s -- -vOn first start the setup wizard listens on 0.0.0.0:3000, and it is the wizard that creates the admin account, so until you finish it there is no password at all. The firewall keeps 3000 closed; reach it through a tunnel from your own machine with ssh -L 3000:127.0.0.1:3000 root@203.0.113.20 and browse to http://127.0.0.1:3000. Leave the admin interface on all interfaces, port 80 (still firewalled; later you use ssh -L 8080:127.0.0.1:80), and the DNS server on all interfaces, port 53.
For the certificate, the manual DNS-01 route works but does not renew itself, so for anything you intend to leave running, use a certbot DNS plugin or lego with your DNS provider's API:
certbot certonly --manual --preferred-challenges dns \
-d dns.example.org -d '*.dns.example.org'In Settings → Encryption, enter dns.example.org as the server name, give the paths to fullchain.pem and privkey.pem under /etc/letsencrypt/live/dns.example.org/, and keep HTTPS on 443 and DoT and DoQ on 853. AdGuard Home reloads certificates referenced by path when they change, so renewals need no restart. Be aware that port 443 serves the admin interface as well as DoH: once encryption is on, the login page is on the public internet. For a family that is acceptable behind a long password, since AdGuard Home blocks a user after repeated failed logins (auth_attempts, block_auth_min). An NGO that prefers not to show a login page at all can put Caddy or nginx on 443, forward only /dns-query, and list the proxy under trusted_proxies; AdGuard's FAQ documents the configuration.
Under Settings → DNS settings, give it an encrypted upstream, so the second leg, from ALP1 onwards, is not plain text either. Quad9's https://dns.quad9.net/dns-query is the local choice: the Quad9 Foundation moved to Zurich in 2021 and is supervised by the Federal Data Protection and Information Commissioner.
The access settings are what turn a public DNS server into a private one. In Settings → Client settings, add a persistent client per device with a ClientID such as anna-phone or field-laptop-03. Then, in Settings → DNS settings → Access settings, list those ClientIDs, plus your fixed IP if you kept plain DNS, under Allowed clients. From then on AdGuard Home refuses everyone else, which is the allowlist mode AdGuard itself recommends for public instances. The default rate limit of 20 queries per second per client subnet is a speed bump, not an access control. Devices connect as follows: Android 9 and later take anna-phone.dns.example.org as their Private DNS hostname; iPhones and Macs install a configuration profile generated under Setup Guide → DNS Privacy; Windows, Firefox and DoH-capable routers use https://dns.example.org/dns-query/anna-phone.
Finally, set query log and statistics retention in Settings → General to what you will actually look at, and turn on anonymize_client_ip if you do not need per-device history. Back up AdGuardHome.yaml and the data/ directory off the machine; restic to an S3-compatible object storage bucket costs $1.99/mo for 250 GB, far more than this needs. Updates come from the "Update now" button in the interface or /opt/AdGuardHome/AdGuardHome --update.
- 01
With Docker instead
If you keep everything in containers, run the official image with host networking. The default bridge network hides real client IPs behind the Docker gateway, which breaks IP-based access lists, and Docker's published ports are forwarded around the input chain above, so the firewall would not apply to them. Pin the version and change the tag deliberately; the image does not update itself.
# compose.yaml services: adguardhome: image: adguard/adguardhome:v0.107.79 container_name: adguardhome network_mode: host restart: unless-stopped volumes: - ./work:/opt/adguardhome/work - ./conf:/opt/adguardhome/conf - /etc/letsencrypt:/etc/letsencrypt:ro
04/06
Cost.
| Cloud VPS Starter | |
|---|---|
| Price | $6.99/mo |
| vCPU / RAM | 2 vCPU / 2 GB |
| Disk | 80 GB NVMe |
| Included transfer | 10 TB per month, 1 Gbps port |
| Daily backups | +20 % (theoretical: $8.39/mo in total) |
| Extra IPv4 | $2/mo |
| Priority support | $10/mo |
| Yearly billing | about −25 % ($62.99 a year) |
VPS transfer is metered against the monthly allowance rather than unmetered, which for a DNS server is academic, as the estimate above shows. A second IPv4 is worth the $2 only if you want to keep, say, the family resolver and an NGO resolver on separate addresses. Payment is in cryptocurrency only (Monero, Bitcoin, USDT, Ethereum, Litecoin and others), with prices and balances in US dollars; top-ups run from $25 to $5,000, with a bonus of 5 % from $50, rising to 20 % from $500, and the unused paid part of a top-up is refundable within 14 days. A $25 top-up covers about three and a half months of Cloud VPS Starter (theoretical, at list price). No-KYC: an email address is enough to open the account. The full price list is on /pricing/.
05/06
Where the query log lives, legally.
A DNS query log is a browsing history per device, which is the part an NGO should think about before the part a family does. The server sits in ALP1 and is operated by Hosta AG, a Swiss société anonyme (IDE CHE-107.875.655, Käppeligasse 1, 4125 Riehen), so it falls under the revised Federal Act on Data Protection, in force since 1 September 2023. Switzerland is outside the EU, but the European Commission confirmed on 15 January 2024 that it still provides an adequate level of protection, so an EU-based organisation can host staff data here without additional transfer safeguards. As of 31 October 2026 the US has CLOUD Act executive agreements only with the United Kingdom and Australia, none with Switzerland. That removes one shortcut for foreign requests; it is not a blanket shield, and an order from a competent Swiss authority applies to us like to any Swiss company. More on that in our offshore hosting and jurisdiction overview.
On the resolver itself, you decide what exists. If you run it for staff, you are the one processing their data: keep retention short, enable IP anonymisation where per-device history serves no purpose, and tell people the resolver logs.
06/06
Limits and acceptable use.
Do not run AdGuard Home, or anything else, as an open recursive resolver on our network. With the firewall and allowlist above it is not one; without them it becomes one the moment the service starts.
Filtering a child's devices is your call as a parent; reading other adults' query logs without telling them is a data-protection problem you own, not one the software solves.
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.
Can my home router use the VPS as its DNS server?
Yes, if your home connection has a fixed IP that you put in the firewall and in Allowed clients. With a dynamic IP the allowlist breaks every time the address changes, so either use a router that speaks DoH or DoT and give it its own ClientID, or bring the traffic over a WireGuard tunnel (our guide to VPN servers).
Will it work on networks that block public DNS resolvers?
Often, not always. Networks that block well-known resolvers usually do it by IP address or by TLS server name, and your own DoH endpoint on port 443 at an address no list carries looks like any other HTTPS server. DoT on port 853 is trivially blocked by port number. A network that blocks your server's IP specifically will stop it, and the server name is visible in the TLS handshake.
Is 2 GB of RAM enough for large blocklists?
If you load several million rules, watch memory with free -m before deciding to move up to Cloud VPS Standard.
Can Switzerland Hosting see my DNS queries?
Both legs are encrypted, so what crosses our network between your devices, the VPS and the upstream is TLS. The query log sits on your VPS disk under your root account. As with any virtual server, the hypervisor runs on hardware we operate; if that is outside your threat model, a dedicated server removes the shared host from the picture.
Sources
Every fact on this page, with its source
Accessed 3 Nov 2026 unless noted.
Swiss law and authorities
- Swiss NCSC, Quad9 moves to Switzerland (17 February 2021)ncsc.admin.ch
- Federal Act on Data Protection, RS 235.1, in force since 1 September 2023fedlex.admin.ch · verified 3 Nov 2026
EU and other countries
- European Commission, adequacy decisions (Switzerland review, 15 January 2024)commission.europa.eu · verified 3 Nov 2026
- US Department of Justice, CLOUD Act resources (agreements with the UK and Australia only)justice.gov · verified 31 Oct 2026
Industry, providers and software
Other references
- AdGuard KB, Getting started (ports, wizard on 0.0.0.0:3000, updates)adguard-dns.io
- AdGuard KB, Setting up AdGuard Home securely (allowlist mode, plain-DNS rate limit of 20)adguard-dns.io
- AdGuard KB, Configuration (ratelimit, allowed_clients, anonymize_client_ip, port_https shared by web UI and DoH, trusted_proxies)adguard-dns.io
- AdGuard KB, Clients (ClientIDs, wildcard certificate requirement)adguard-dns.io
- AdGuard KB, DNS encryption (Let's Encrypt, certificate reload, device setup)adguard-dns.io
- AdGuard KB, Docker (host networking for real client IPs)adguard-dns.io
- AdGuard KB, FAQ (systemd-resolved conflict, reverse proxy, DNS-level limitations)adguard-dns.io
- CISA, Alert TA13-088A, DNS Amplification Attacks (archived)cisa.gov
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.
