Self-hosted app·DNS, network tools and remote access
Smart DNS proxy server on a Swiss VPS.
Run a smart DNS proxy server on a $6.99 Swiss VPS in ALP1: Unbound overrides, an nginx SNI proxy locked to your IPs, sizing, transfer maths and limits.
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. A smart DNS proxy for one household runs on Cloud VPS Starter, our smallest plan: 2 vCPU, 2 GB RAM, 80 GB NVMe and 10 TB of monthly transfer on a 1 Gbps port for $6.99 a month, with Debian 13 in ALP1, our site in the Swiss Alps. The job is copying bytes from one socket to another, and a single vCPU covers it. What decides whether the setup is acceptable is who can use it. Both halves, the resolver and the proxy, must answer your own addresses and nobody else's, and the proxy must refuse every hostname you did not list. Scanners find open resolvers quickly and use them to amplify other people's DDoS traffic, and an open proxy collects strangers; either one turns a seven-dollar hobby into an abuse ticket.
Set your expectations on the other side as well. What you get is a Swiss source address for a short list of domains, and it is a data-centre address. A service that blocks hosting ranges will block it, as it would block any VPS, and a Swiss IP does not change the terms you agreed with that service.
02/06
What a smart DNS proxy is, and who runs one.
Two small services do the work. The first is a resolver that lies on purpose: for the domains you choose it answers with the VPS's own address, and for everything else it returns the real records. The second is a TCP proxy on port 443 that reads the server name from the TLS ClientHello (the SNI field, which is sent in clear before encryption starts), opens a connection to the real host from Switzerland and copies data in both directions. Nothing is decrypted and no certificate is involved. The TLS session runs end to end between your device and the service, which sees a client in Switzerland. nginx has done the second part since version 1.11.5 through its ssl_preread stream module, and Debian 13 packages the stream module as libnginx-mod-stream.
Compared with a VPN, the appeal is selectivity. Only the listed domains take the detour through the Alps; everything else leaves your line directly, at full speed. The client needs no software either, so a smart TV, a console or a streaming box that cannot run WireGuard only needs a different DNS server, which most routers hand out by DHCP. The price is that a smart DNS protects nothing. Queries reach the resolver unencrypted, the hostname is readable on the path, and any device that ignores your resolver simply goes around the setup.
The people this suits are Swiss living abroad and expatriates who kept ties here: an account with a Swiss bank, insurer or cantonal portal that flags foreign logins, or a Swiss service they pay for and want to reach while travelling. Commercial smart DNS services exist, but they share their addresses among many customers, and shared addresses are the ones detection systems learn first. Your own VPS gives you one address that only your household uses.
The large clouds write the failure mode into their contracts. DigitalOcean's acceptable use policy, last updated on 20 March 2026, lists open proxies and open recursive name servers among the network services you may not operate. A locked-down smart DNS is neither, and keeping it that way is the point of the configuration below. Our acceptable use policy lists VPNs and proxies among the uses welcome in ALP1, and the advice from our Unbound page applies unchanged: keep the resolver off public port 53, because open resolvers are used to amplify attacks on other networks, which our policy forbids.
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.
CPU and memory are not the constraint. Unbound and nginx together use a small fraction of Starter, and the second vCPU is free for a WireGuard server on the same machine. The number to watch is transfer, because a proxy carries every byte twice: in from the origin and out to you. VPS transfer is metered against the 10 TB included in the plan. Assuming both directions count (the worst case), and taking 5 Mbit/s for an HD stream and 25 Mbit/s for 4K as round figures, the arithmetic is theoretical:
| Stream | Per hour, one direction | Per hour through the proxy | Hours that fit in 10 TB |
|---|---|---|---|
| HD, 5 Mbit/s | 2.25 GB | 4.5 GB | about 2,200 |
| 4K, 25 Mbit/s | 11.25 GB | 22.5 GB | about 440 |
A month has about 730 hours, so three HD streams running around the clock fit, or roughly fourteen hours of 4K a day. The 1 Gbps port would carry about forty 4K streams at once (theoretical) and will never be your limit.
| Port | Protocol | Purpose | Who may connect |
|---|---|---|---|
| 22 | TCP | SSH | Public, key-only, or your address |
| 53 | UDP + TCP | Resolver with overrides (only if hosted on the VPS) | Your addresses only |
| 443 | TCP | SNI proxy | Your addresses only |
| 80 | TCP | Redirect to HTTPS | Your addresses only |
| 443 | UDP | QUIC | Rejected, so browsers fall back to TCP at once |
The last row matters more than it looks. Once a site has told a browser over TCP that it speaks HTTP/3, the browser tries QUIC on UDP 443 to the same address, which is now your proxy. ssl_preread cannot read QUIC, so the firewall rejects those packets rather than dropping them, and the browser falls back without waiting for a timeout.
Distance is the other cost. Every proxied connection now runs from your home to ALP1 and on to the origin. From most of Europe the detour is short. From further away physics sets a floor: light in fibre covers about 200 km per millisecond, so Singapore, roughly 10,000 km from Switzerland in a straight line, adds at least 100 ms of round trip (theoretical; real routes are longer). A video player hides that once its buffer fills. A resolver that every lookup on your network has to reach cannot hide it, which settles the first deployment decision.
04/06
How to deploy it with us.
Decide first where the overrides live. If your home network has a router running dnsmasq, a Pi-hole or an AdGuard Home instance, put the overrides there, pointing at the VPS address. The VPS then runs only the proxy, no DNS port is open at all, and ordinary lookups never leave the house. That is the setup we would choose. Whatever does the overriding must also suppress the real AAAA and HTTPS (type 65) records for those names, or IPv6-capable devices and browsers using Encrypted Client Hello will go around the proxy. Host the resolver on the VPS only when you cannot change DNS locally, and only with a fixed home address.
- 01
1. Order and install
Order Starter with Debian 13 from the deploy link; sign-up is no-KYC: an email address is enough. Docker adds nothing here, since both programs are Debian packages that receive security updates through apt. In the examples, 203.0.113.10 stands for the VPS, 198.51.100.23 for your home, and
example.comfor a domain you route through Switzerland.apt update && apt full-upgrade -y apt install -y nginx libnginx-mod-stream unbound nftables bind9-dnsutils nginx -V 2>&1 | grep -o with-stream_ssl_preread_module # must print the flag - 02
2. The resolver, unless the overrides live at home
Unbound refuses every client except localhost unless told otherwise, which is the right starting point.
# /etc/unbound/unbound.conf.d/smartdns.conf server: interface: 0.0.0.0 access-control: 0.0.0.0/0 refuse access-control: 127.0.0.0/8 allow access-control: 198.51.100.23/32 allow # your home, nothing wider hide-identity: yes hide-version: yes local-zone: "use-application-dns.net." always_nxdomain local-zone: "example.com." redirect local-data: "example.com. 300 IN A 203.0.113.10"A
redirectzone answers the name and every subdomain from its local data, so AAAA and HTTPS queries forexample.comcome back empty. IPv6 devices stay on IPv4, and browsers find no ECH configuration and send a plain SNI that the proxy can read. The canary domain tells Firefox to switch off DNS-over-HTTPS where it enabled it by default; it does not override a user who turned DoH on deliberately. Repeat the last two lines for each domain, then rununbound-checkconf && systemctl restart unbound. - 03
3. The proxy
Append a
streamblock to/etc/nginx/nginx.conf, at top level rather than insidehttp {}:stream { resolver 9.9.9.9 149.112.112.112 ipv6=off valid=300s; map $ssl_preread_server_name $upstream { ~^(.+\.)?example\.ch$ $ssl_preread_server_name:443; default 127.0.0.1:1; # nothing listens here } server { listen 443; ssl_preread on; allow 198.51.100.23; deny all; proxy_pass $upstream; proxy_connect_timeout 5s; } }Two details carry the safety of the whole setup. The
mapis a destination allowlist: a hostname you did not list goes to a closed port and the connection dies, so even a firewall mistake does not give anyone a general-purpose proxy. And theresolvermust be a public one, never your local Unbound, or nginx would resolveexample.comto itself and loop. We use Quad9, operated by a foundation that moved its headquarters to Zurich in 2021 and is supervised by the Federal Data Protection and Information Commissioner. For plain-HTTP links, replace the server in/etc/nginx/sites-available/defaultwith one that sends everything to HTTPS, then runnginx -t && systemctl reload nginx:server { listen 80 default_server; return 301 https://$host$request_uri; } - 04
4. The firewall
Write
/etc/nftables.conf, keep your SSH session open, and runsystemctl enable --now nftables:#!/usr/sbin/nft -f flush ruleset table inet filter { set home { type ipv4_addr flags timeout elements = { 198.51.100.23 } } 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 ip saddr @home tcp dport { 53, 80, 443 } accept ip saddr @home udp dport 53 accept udp dport 443 reject } }If your home address changes, keep the resolver at home, remove the
allowline from nginx and let the set be the gate. A systemd timer every five minutes runningnft add element inet filter home { $(dig +short home.example.net) timeout 15m }follows a dynamic DNS name, and the destination map still limits what the proxy will reach. - 05
5. Test from home, then from anywhere else
dig @203.0.113.10 www.example.com A +short # 203.0.113.10 dig @203.0.113.10 www.example.com AAAA +short # empty curl -sI https://www.example.com --resolve www.example.com:443:203.0.113.10 # answers curl -sI https://www.wikipedia.org --resolve www.wikipedia.org:443:203.0.113.10 # refusedFrom a phone on mobile data, all four should time out. Then set the VPS (or your local resolver) as the DNS server in the router's DHCP settings. Some streaming sticks ignore the DHCP resolver and query a hardcoded public one; a router rule that blocks outbound port 53 to anything but your resolver brings them back in line. Browsers with DoH switched on manually, and Safari with iCloud Private Relay, bypass the overrides until you change those settings.
05/06
Cost.
| Item | Price |
|---|---|
| Cloud VPS Starter, Debian 13, ALP1 | $6.99 / month |
| Yearly billing, about 25 % less | $62.99 / year |
| With daily backups (+20 %) | $8.39 / month |
The price covers 2 vCPU, 2 GB RAM, 80 GB NVMe, one IPv4 address, a 1 Gbps port and 10 TB of transfer a month. Payment is in crypto (Monero, Bitcoin, Tether, Ethereum, Litecoin and other coins) against a balance kept in US dollars. Top-ups start at $25, which is three and a half months of Starter; from $50 we add a 5 % bonus, so $50 becomes $52.50 of credit, about seven and a half months (theoretical). The unused paid part of a top-up is refundable within 14 days. We would skip the backup option for this machine: the configuration is three short files, and a copy in a git repository is all a rebuild needs. Every other plan is on the pricing page.
06/06
Limits and acceptable use.
This guide is written for one household; adding a relative's address to the allowlist changes nothing. Selling smart DNS access to the public is a different business, with more abuse reports to answer and the platforms' terms to reckon with. A resolver or proxy that answers the internet is handled like any other report under our policy: we tell you in a ticket what was reported and give you time to fix it, unless the harm is ongoing and serious, and we suspend the service if the use clearly breaks the policy.
Streaming platforms commonly license content by territory and say in their terms where you may watch it. Netflix's help centre, for one, states plainly that a VPN or proxy can trigger its error page. A Swiss address on our network does not change your contract with any of these services, and staying within their terms is your responsibility. Expect our addresses to be classified as hosting addresses, because they are.
Our offshore hosting page covers what Swiss jurisdiction does and does not change for a server in ALP1.
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.
Smart DNS or WireGuard?
For phones and laptops, WireGuard: it works on any network, encrypts everything and does not depend on a fixed home address. Smart DNS is for the devices that cannot run a VPN client, such as televisions and consoles, on a home network you control. Both fit on one Starter.
Will it get me into a geo-restricted streaming catalogue?
We cannot promise that, and nobody honest can. Large platforms check whether an address belongs to a hosting network, and ours does. Their terms also apply whatever address you connect from. A service you are entitled to that simply restricts logins to Swiss addresses is the case this setup is built for.
Can you see what we watch?
The TLS sessions run end to end between your devices and the services, so the proxy never holds their content. It does see each hostname in the SNI field, and the DNS queries reach the VPS unencrypted on port 53. On our side, that traffic crosses our network like any host's. Unbound logs individual queries only if you set log-queries: yes.
Does a Swiss address help with services limited to the EU?
No. Switzerland is outside the EU, so a service that serves only EU visitors treats a Swiss address as foreign. If an EU address is what you need, a server in Switzerland is the wrong tool.
Can I encrypt the DNS part?
Only between your devices and the resolver, and only for devices that support it. Our private DoH server guide shows DoH and DoT with per-device identifiers, and its upstream can be a local Unbound carrying the redirect zones from step 2. Most televisions, the devices smart DNS exists for, speak only plain DNS.
Sources
Every fact on this page, with its source
Accessed 6 Nov 2026 unless noted.
Swiss law and authorities
- Swiss National Cyber Security CentreQuad9 moves to Switzerland
Industry, providers and software
- DigitalOceanAcceptable Use Policy
- Debianlibnginx-mod-stream in trixie
Other references
- Switzerland HostingAcceptable Use Policy
- nginxModule ngx_stream_ssl_preread_module
- NLnet Labsunbound.conf(5)
- MozillaCanary domain use-application-dns.net
- Netflix Help Center"You seem to be using a VPN or proxy"
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.
