Set up SecDNS on iPhone and iPad
Apple supports encrypted DNS natively on iOS 14 and later via DNS-over-HTTPS (DoH) configuration profiles. The signed mobileconfig that SecDNS issues installs in under five minutes and protects both Wi-Fi and cellular traffic.
What you will need
- A SecDNS account and at least one tenant
- An iPhone or iPad running iOS or iPadOS 14 or newer
- Safari (the signed profile only installs through the system browser)
- Your device passcode to confirm the install
Setup steps
- Create a device in SecDNS. Sign in to your dashboard, open Devices and add a new device. Pick iOS as the platform and copy the generated device id; you will see it in the URL
/api/dns/mobileconfig?profile=<id>. [screenshot placeholder] - Download the signed mobileconfig. On the device detail page tap Download mobileconfig. iOS will warn you that a profile is ready to install. [screenshot placeholder]
- Open the profile in Settings. Open the Settings app on the iPhone. A banner labelled Profile Downloaded appears under your name; tap it.
- Install the profile. Tap Install in the top right, enter your passcode and confirm the warning that the profile changes DNS settings.
- Confirm encrypted DNS is active. Go to Settings, General, VPN and Device Management. The SecDNS profile should be listed under Configuration Profiles with a green checkmark. [screenshot placeholder]
- Test resolution. Open Safari and visit https://dns.google. The reported resolver should match a SecDNS anycast endpoint, for example
dns.secdns.io.
Verify it works
Visit https://dnscheck.tools or https://dns.google from Safari. Both pages echo the resolver hostname, which should resolve to dns.secdns.io. Returning to your SecDNS dashboard, the Live Logs panel for the device should start filling within a few seconds of any new request.
Troubleshooting
- Profile will not install. Some VPN clients also configure DNS and conflict with the SecDNS profile. Disable other VPN or DNS configuration profiles, then reinstall.
- Profile installs but DNS still resolves through your ISP. Open Settings, General, VPN and Device Management and confirm the SecDNS profile is set to Enabled. Toggle airplane mode off and on to force iOS to re-apply DNS settings.
- Mobileconfig fails signature check. iOS rejects unsigned profiles when downloaded outside Safari. Re-download from Safari rather than Chrome or an email attachment.
- Captive portals stop working. Captive portals are detected before encrypted DNS engages on iOS. If you cannot reach a portal page, briefly disable the profile, sign in, then re-enable it.
Notes
The DoH endpoint baked into the profile is https://dns.secdns.io/dns-query/<device-id>. If you ever need to switch endpoints, regenerate the mobileconfig from the dashboard; iOS will replace the old profile in place.