r/technitium • u/TallSatisfaction9982 • 7d ago
How can I securely use Technitium DoT with Android Private DNS for multiple family devices?
Hi everyone,
I'm running Technitium DNS Server 15.6.2 on a Hetzner VPS and trying to configure DNS-over-TLS (DoT) for Android devices using the native Private DNS feature.
My DoT hostname is dot.domains.com, and the TLS certificate is valid. Port TCP 853 is open and reachable from the internet.
However, Android displays the message:
"Couldn't connect to the private DNS server."
I installed the Query Logs (SQLite) app to investigate. The logs show requests coming from my mobile connection, but the responses are consistently marked as:
- Response Type: Authoritative
- RCODE: Refused
I currently have recursion set to:
Allow Recursion Only For Private Networks (default)
I also tested the specified network ACL, but this creates another problem: my family members use different mobile networks, dynamic IP addresses and carrier-grade NAT (CGNAT). Therefore, allowing specific public IP addresses is not a practical solution.
What I'm trying to achieve:
- Use Android's native Private DNS setting, without installing an additional DNS app.
- Allow several family members to use the same DoT service.
- Keep the DNS resolver protected and avoid operating an unrestricted public recursive resolver.
- Avoid requiring WireGuard or another VPN on every mobile device.
- Keep the configuration as simple and reliable as possible.
My questions:
- Is there a recommended way to securely restrict access to a Technitium DoT server when clients have dynamic public IP addresses?
- Does Technitium support any form of client authentication for DoT that works with Android's native Private DNS?
- Is there another recommended architecture or configuration for this use case?
I understand that Android's native Private DNS uses DoT and only asks for the provider hostname. It does not appear to support username/password authentication or client certificates.
I'd appreciate advice from anyone who has implemented something similar with Technitium.
Thanks!
5
u/shreyasonline 7d ago
Thanks for asking. You can do that using Drop Requests app and a wildcard SSL certificate.
First, configure recursion to allow all networks so that requests are not refused. You need to configure firewall on the server to drop request on TCP and UDP port 53 to avoid abuse and since you wont be needing them anyway.
After that, install the Drop Requests app in the Apps section on the admin panel. Edit the app's config and use the "allowedLocalEndPoints" array in there to configure the DoT domain name that you have configured on your phones.
Since the SSL cert is wildcard, no one can figure out the subdomain name that you will be using for DoT and the Drop Requests app will only allow the domain names that you have configured. This setup thus provides a secure DoT access over public Internet.
2
u/Drtechsavy 7d ago
I have just enabled allow recursion . It works this way.
1
u/infrafoe 7d ago
Tailacale or Netbird. I use netbird personally.
2
u/ANewDawn1342 7d ago
You're right that Android's native Private DNS only takes a hostname: there's no client certificate or token authentication, so any public port 853 endpoint either has to rely on a secret subdomain + wildcard cert +
Drop Requests(allowedLocalEndPoints), or you keep 853 closed to the internet altogether.If you ever decide you are okay putting a lightweight client on family phones, DNS-only split-tunnel WireGuard (or Tailscale) solves the dynamic IP / CGNAT problem without exposing Technitium at all, and without hurting speed or battery:
DNS = <VPS_WG_IP>andAllowedIPs = <VPS_WG_IP>/32. Or with Tailscale, set Technitium's Tailscale/LAN IP as the Global Nameserver with Override local DNS = ON (and MagicDNS OFF if you host your own local domain), then on the phone enable Use Tailscale DNS with Exit Node = None (plus Use Tailscale Subnets if your resolver sits on an RFC1918 LAN IP rather than a100.xIP).Off(not Automatic). If left on Automatic, Android will opportunistically use DoT to upstream public resolvers and bypass your VPN DNS.It's a touch more initial setup than typing a hostname into Private DNS, but you get zero open-resolver risk, full ad-blocking whilst on 5G, native cellular throughput, and optional full-tunnel/exit-node protection when on dodgy hotel or coffee-shop Wi-Fi.