iOS and iPadOS 14 and later accept encrypted DNS through a configuration
profile (a .mobileconfig file). After you install it, it applies to every
app, on Wi-Fi and on mobile data.
Sign in to the dashboard, in Safari on the iPhone or iPad or on a
computer. Open the Setup page of the profile.
Under Encrypted DNS, fill in Name a device (optional), for
example Kitchen iPad. The dashboard saves the name in the form that the
resolver records (kitchen-ipad). Logs and Analytics show the device
with this name. You can leave the field empty.
In iOS and macOS configuration profile, choose the protocol:
DNS-over-HTTPS (recommended) or DNS-over-TLS (for networks that
block DNS-over-HTTPS).
Click Download configuration profile. The name of the file is
opdns-<profile-id>-<device>-doh.mobileconfig (or …-dot…).
The file holds one thing: a DNS setting with the address of your profile
(and the device name) filled in. The setting applies on every network, on
Wi-Fi and on mobile data. The note under the download button on the Setup
page tells you how iOS labels the file. The label is Verified when opdns
signs the file, and Unverified while it is not signed. Both labels are
normal, and the file is the same. If you download the file again with the
same device name, the new profile replaces the installed one. iOS does not
add a second profile, for both protocols.
If you downloaded the file on the iPhone or iPad, iOS asks if it can
allow the download. Tap Allow. If you downloaded the file on a
computer, AirDrop it to the device. You can also email it to yourself and
open the attachment in Mail. iOS shows Profile Downloaded.
Open Settings. Tap Profile Downloaded near the top. You can also
go to Settings → General → VPN & Device Management and tap the
profile named opdns, followed by the name of your profile in
brackets.
Tap Install, enter the passcode, and accept the prompt.
Screenshot to comeiOS Install Profile screen for the opdns profile, marked Unverified, with the Install button.iPhone, iOS 18
Open Settings → General → VPN & Device Management → DNS. Make sure
that opdns DNS over HTTPS (or opdns DNS over TLS) is selected.
If a VPN app sets its own DNS, that DNS has priority while the VPN app is
connected.
iCloud Private Relay can resolve the names for Safari through the relay
of Apple. If the log shows queries from other apps but none from Safari,
that is the cause.
To download the file, you must sign in to the dashboard. Through the API,
you get the same file from
GET /v1/setup/apple?profile=<profile-id>&device=<device>&protocol=doh
with a token that has profiles:read.
We support the downloaded file. You can use this template if you cannot
use the downloaded file. For example, you have no access to the dashboard
on the device that you set up, or you manage devices with your own tools.
The template is the same as a DNS-over-HTTPS download. Copy it into a text
editor and replace the placeholders:
Replace <profile-id> and <device>. Use hyphens, not spaces, in the
device name.
Replace the two UUID-… values with two different UUIDs. Run uuidgen
on a Mac or on Linux, or use any online UUID generator.
opdns.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">