Apple Encrypted DNS Profile Builder
Want to learn why secure DNS is highly recommended? Read the post →
Build a .mobileconfig that forces encrypted DNS system-wide on iOS and macOS, including cellular, which has no Settings UI of its own. Optionally have it stand down on your home Wi‑Fi so a local resolver like Pi‑hole keeps doing the work.
Profile
Before you trust it
- An active VPN overrides this profile. Whatever DNS the VPN pushes wins for as long as it is connected, no matter what this profile says. If you run an always‑on VPN, configure DNS there instead, because this profile will mostly sit idle.
- iCloud Private Relay resolves separately. With Private Relay on, Safari’s name resolution goes through Apple’s relays rather than your chosen resolver. Turn it off (Settings → your name → iCloud → Private Relay) if you need every query to go where this profile says.
- Test both states before relying on it. Check once on cellular and again on the excluded Wi‑Fi.
- Install it manually, not through MDM. Apple's own schema notes that a profile pushed by an MDM applies only to managed Wi‑Fi networks, while one installed by hand also covers cellular. Deploying this through MDM would quietly drop the cellular coverage that is the main reason to use it.
- Captive portals can break while it is active. Hotel and airport sign‑in pages sometimes depend on hijacking plaintext DNS. If a portal will not load, disable the profile long enough to sign in.
- Generate this on a computer, not the iPhone. Safari on iOS saves a downloaded
.mobileconfigto Files rather than opening the install flow. Build it here on a desktop, then AirDrop or email it to the phone. - Unsigned profiles show “Unverified” in red. Expected, and nothing is wrong. It means the file carries no code‑signing certificate, not that its contents are invalid.
Everything here happens in your browser. This page makes no third‑party requests, and
the profile is assembled locally, so nothing you type is transmitted or stored. Install by
opening the file on the device, then Settings → General → VPN & Device Management.
Requires iOS 14 / macOS 11 or later, which is when Apple added the
com.apple.dnsSettings.managed payload.