Set up SecDNS on Android
Android 9 Pie introduced Private DNS, a native DNS-over-TLS (DoT) client that protects every app on the device without rooting or VPN trickery. SecDNS issues a per-device DoT hostname you can paste straight into the Private DNS field.
What you will need
- A SecDNS account
- An Android phone or tablet running Android 9 or newer
- Your per-device hostname, for example
abcd1234.dns.secdns.io
Setup steps
- Create a device in SecDNS. Sign in, open Devices and add a new Android device. Copy the device id from the detail page; your hostname is
<device-id>.dns.secdns.io. [screenshot placeholder] - Open Private DNS settings. Open the Android Settings app. Use the search bar at the top and type "Private DNS" to jump straight there. The setting usually lives under Network and Internet or Connections depending on the vendor.
- Choose the hostname option. Select the option to enter a Private DNS provider hostname rather than Off or Automatic. The label is sometimes shown as "Designated Private DNS".
- Paste the SecDNS hostname. Type your per-device hostname
<device-id>.dns.secdns.ioand tap Save. Android validates the hostname before saving. [screenshot placeholder] - Confirm the indicator. Pull down the notification shade. A lock icon near the signal bars indicates that Private DNS is active.
- Test resolution. Open Chrome and visit https://dns.google. The reported resolver should resolve to a SecDNS anycast PoP.
Verify it works
Open https://dnscheck.tools or run a DNS lookup from a terminal app: the resolver hostname should report SecDNS infrastructure. Back in the dashboard, the device Live Logs view should start filling within seconds. If you do not see queries, force-close Chrome and reopen it so it picks up the new resolver.
Troubleshooting
- Hostname will not save. Android validates that the hostname resolves over DoT before saving. If it fails, retype the hostname and confirm there are no leading or trailing spaces.
- Lock icon never appears. Some vendors hide the lock icon in the status bar by design. Confirm Private DNS is configured by going back to Settings, Network and Internet, Private DNS.
- Captive portals fail to load. Android falls back to insecure DNS for the captive portal check on most builds. If a portal will not load, temporarily switch Private DNS to Automatic, sign in, then switch back.
- A VPN takes over DNS. Most VPNs push their own DNS while connected. Either choose a VPN that respects system DNS or configure the VPN to use the SecDNS DoH URL
https://dns.secdns.io/dns-query/<device-id>.
Notes
Some vendor builds (notably older Samsung One UI versions) call the setting "Private DNS server hostname". The behaviour is identical to stock Android.