Skip to content
Sign inDashboard

iOS and iPadOS

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.

  1. Sign in to the dashboard, in Safari on the iPhone or iPad or on a computer. Open the Setup page of the profile.

  2. 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.

  3. In iOS and macOS configuration profile, choose the protocol: DNS-over-HTTPS (recommended) or DNS-over-TLS (for networks that block DNS-over-HTTPS).

  4. Click Download configuration profile. The name of the file is opdns-<profile-id>-<device>-doh.mobileconfig (or …-dot…).

    The Setup page's iOS and macOS configuration profile block with the protocol choice and the Download configuration profile button.

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.

  1. 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.

  2. 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.

  3. Tap Install, enter the passcode, and accept the prompt.

  4. Open Settings → General → VPN & Device Management → DNS. Make sure that opdns DNS over HTTPS (or opdns DNS over TLS) is selected.

  5. Check it works.

Go to Settings → General → VPN & Device Management. Tap the opdns profile, then tap Remove Profile.

  • 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.
  • The same file works on macOS. See macOS.
  • 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">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>DNSSettings</key>
<dict>
<key>DNSProtocol</key>
<string>HTTPS</string>
<key>ServerAddresses</key>
<array>
<string>23.166.164.53</string>
<string>23.166.164.35</string>
<string>2602:81f:6000::53</string>
<string>2602:81f:6000::35</string>
</array>
<key>ServerURL</key>
<string>https://dns.opdns.net/<profile-id>/<device></string>
</dict>
<key>PayloadDisplayName</key>
<string>opdns DNS over HTTPS</string>
<key>PayloadIdentifier</key>
<string>net.opdns.<profile-id>.<device>.dns</string>
<key>PayloadType</key>
<string>com.apple.dnsSettings.managed</string>
<key>PayloadUUID</key>
<string>UUID-ONE</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>ProhibitDisablement</key>
<false/>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>opdns (<profile-id>)</string>
<key>PayloadIdentifier</key>
<string>net.opdns.<profile-id>.<device></string>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>UUID-TWO</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>

Save it as opdns.mobileconfig. Make sure that no angle brackets remain in the file. Then install it as in Install it, from step 1.