SecDNS

Set up SecDNS on Android 9 and newer with Private DNS

Switch your Android phone or tablet to encrypted SecDNS in under three minutes using the built-in Private DNS setting on Android 9 Pie and later.

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

  1. 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]
  2. 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.
  3. 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".
  4. Paste the SecDNS hostname. Type your per-device hostname <device-id>.dns.secdns.io and tap Save. Android validates the hostname before saving. [screenshot placeholder]
  5. Confirm the indicator. Pull down the notification shade. A lock icon near the signal bars indicates that Private DNS is active.
  6. 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.

Frequently asked questions

Does Private DNS use DoH or DoT?

Android Private DNS uses DNS-over-TLS (DoT) on port 853. SecDNS exposes a per-device DoT hostname so query logs and policy enforcement work the same as on the DoH endpoint used by other platforms.

Will Private DNS protect me on mobile data?

Yes. Once configured, Android applies Private DNS across Wi-Fi and cellular automatically. The only exception is some VPN clients that override DNS resolution.

My Android phone does not show a Private DNS option.

Private DNS was added in Android 9 Pie. Earlier versions need a third-party DoT client or a VPN-based DNS app. You can also use the SecDNS Android app from the Play Store as a fallback.

Can I keep using a VPN with Private DNS?

Most VPNs override the system resolver while connected. If your VPN supports specifying a custom DoH endpoint, point it at https://dns.secdns.io/dns-query/<device-id>. Otherwise expect VPN DNS to take over while the tunnel is up.

How do I share a profile across my phone and tablet?

Create one device entry per phone or tablet so query logs stay separate. If you would rather aggregate them, create a shared profile and use the same hostname on both devices.