The gap
Install a filtering DNS profile on an iPhone and it works well: it applies to every app, on Wi-Fi and on cellular, and it logs what was reached. Then open Settings -> General -> VPN & Device Management -> DNS, switch from the profile to Automatic, and the whole thing is off. Nothing asks for a passcode, and the phone falls back to whatever resolver the network hands out. The profile is still installed, so at a glance the setup still looks intact. This is confirmed behaviour on current iOS, not a theoretical gap.
The same question comes up on every platform, and the answer is different on each, which is why this page is split by device. This is not a flaw in any particular DNS provider. It is how iOS presents DNS configurations, and every provider's profile behaves the same way. If your setup depends on a DNS profile and you have not addressed this, you do not have a lock. You have a preference.
iPhone and iPad: supervision is required
There is one setting that fixes this, and it only works on a supervised device. We checked the alternatives thoroughly, because it would be convenient if there were an easier route.
The setting that works
Apple's DNS payload has a ProhibitDisablement key. Apple's description: "If true, the system prohibits users from disabling DNS settings. This key is only available on supervised devices." NextDNS exposes it in its profile generator as Prohibit Disablement, with the same supervised-only warning.
Watch this: Apple's developer documentation marks the DNS Settings profile payload as deprecated from iOS 27, iPadOS 27 and macOS 27. Deprecated means still working but on notice, not removed; the replacement is a declarative configuration that only device management can deliver, not a profile you tap to install. Nothing changes today. Re-test your profile after updating to iOS 27, and expect this route to narrow over time.
What does not work
Screen Time cannot help. Its Allow Changes To section covers eight items, none of which are DNS, VPN, or profiles. Apple's entire restrictions payload contains no DNS key at all. There is no unsupervised setting, official or otherwise, that locks this.
What supervising your own iPhone actually involves
- Back up the phone. Supervision erases it. This is the part that stops most people, and reasonably so.
- Turn off Find My and sign out of your Apple Account, or Activation Lock will block the next step.
- On a Mac, install Apple Configurator from the Mac App Store. It is free, and currently needs macOS 15.7 or later.
- Erase the phone and connect it by cable at the Hello screen, before Setup Assistant runs.
- Choose Prepare -> Manual Configuration, and tick Supervise devices.
- Choose Do not enroll in Device Management. You do not need an MDM server, and there is a literal option for this.
- Create an organisation and a supervision identity. Back this up. Changing it later means erasing and starting again.
- Install your prepared profile over the cable, then restore your backup.
- Confirm the DNS filtering actually applies on cellular once you are done, rather than assuming it.
One genuinely useful quirk: Apple documents that a manually installed DNS profile also applies to cellular, whereas one pushed by an MDM only covers managed Wi-Fi. A profile you push over a cable with Configurator is not going through an MDM, so it should count as manual, which would make this route better than a managed one rather than a compromise. Apple does not classify Configurator installs explicitly, so verify cellular coverage on the device.
The profile needs more than the DNS payload
This is the part most guides miss. Turning on Prohibit Disablement stops the DNS being switched to Automatic. It does nothing about the profile simply being deleted, and the profile generators do not add that protection for you.
| What you add | What it stops |
|---|---|
ProhibitDisablement in the DNS payload | Switching DNS to Automatic |
PayloadRemovalDisallowed at the top level | Deleting the profile |
| A profile removal password payload | Removal even by someone who gets that far |
| Blocking interactive profile installation | Installing a looser profile alongside it |
| Blocking VPN creation | A VPN or proxy app rerouting around DNS entirely |
| Blocking Erase All Content and Settings | Wiping the phone from Settings to escape |
| Blocking host pairing | Plugging into another Mac to manage the device |
Provider-generated profiles are usually offered signed by default, and a signed profile cannot be edited. If you intend to add removal protection, generate it unsigned. Second, leave the DNS payload's failover option off. It already defaults to off on current systems, so this is a check rather than a change, but letting the device fall back to the network's own resolver when yours is unreachable would be a hole in both the block and the record.
Every row in that table is supervised-only on iPhone. That is the complete answer to why supervision is unavoidable here.
Supervision applied with Apple Configurator does not survive a DFU restore. Anyone with a Mac, a cable, and twenty minutes can strip it off. So if you supervise your own phone, using your own Mac, holding your own supervision identity, you have built an elaborate speed bump for yourself and not a lock.
For this to be real, the trusted person has to run Configurator and keep the supervision identity, the profile removal password, and your Apple Account password. If that is not something they are willing to do, be honest with yourself that supervision is not actually available to you, and use the detection approach instead. A lock you can undo in an afternoon is not worth wiping your phone for.
The version that survives an erase: Apple Business
Since April 2026 Apple has folded Business Manager and Business Essentials into a single free Apple Business service that includes device management for up to 500 devices at no cost. It changes the ceiling above, because a device assigned to an organisation there re-enrols itself after any erase, including a DFU restore.
- The trusted person signs up for Apple Business. Apple verifies an organisation, not a person: in the United States an EIN or D-U-N-S number plus a second check such as a domain record, and it can take weeks. Apple does not say whether an individual qualifies, so in practice this is for a trusted person who has a business, a church, or a charity.
- Add your iPhone with the Apple Configurator for iPhone app, since it was not bought from Apple with the organisation attached. This erases the device, exactly as manual supervision does, so back up first.
- In the free MDM, upload the profile from the profile builder or your provider as a Custom configuration, with
ProhibitDisablementand the supervised restrictions from the section above added. Apple accepts any profile under 1 MB. - Know about the 30-day provisional period. For the first 30 days after enrolment, Settings shows a Leave Remote Management option. After that it disappears, and erasing or restoring the phone brings management straight back at the Hello screen.
This is the strongest position an iPhone can be in without belonging to an employer, and it is the only one where a DFU restore does not help you. The costs are real: the trusted person has to be willing to run an organisation account, and the profile it pushes is managed, so re-check that DNS filtering still applies on cellular rather than only on managed Wi-Fi. Paid alternatives that work the same way through Apple's device enrolment include Mosyle and SimpleMDM; a consumer service, Tech Lockdown, packages supervision and DNS locking for exactly this use.
Mac: no supervision needed, but only if you give up admin
A Mac can hold this well without erasing anything, and without the supervision an iPhone demands. But the protection comes entirely from the administrator boundary, not from any missing control. If you are an administrator on your own Mac, you do not have a lock, you have a preference.
macOS does not appear to offer the on/off control that iPhone does. On current macOS the settings pane shows read-only text naming the server in use rather than a selector you can flip. Apple documents none of this, so treat it as observed rather than guaranteed.
Absence of a switch is not the same as no way out. An administrator can still change the DNS servers for a network directly, and can remove the profile. Whether a manual DNS change overrides an active profile is something we have not tested, so assume it might until you have checked it on your own machine.
Both of those actions need an administrator password, which is the actual point. On a Mac the lock is the account boundary, not a missing button. If you stay an administrator, everything below is decoration.
The override is admin-gated
There is no on/off switch for the profile itself, the way iPhone offers one. What a Mac does have is the ordinary network settings, where an administrator can set DNS servers directly or remove the profile outright.
Both need the administrator password. Verified on macOS 26: the permission governing network settings requires an administrator and prompts for authentication. That is why the account split below is not a formality.
A standard account is what protects it
macOS has a genuine administrator split and it is enforced here: removing a configuration profile requires admin authentication, and so does changing DNS servers on any network service. A standard user can do neither. This is the whole mechanism on a Mac, which is why it is step one below rather than a footnote.
The Mac setup, in order
- Convert the daily account to Standard, with the trusted person holding the only administrator account. Everything else rests on this, so do it first and confirm no second admin account exists with a password you know.
- Generate the DNS configuration profile from your provider, choosing Mac as the device type, and generate it unsigned so it can be edited.
- Add
PayloadRemovalDisallowedand a profile removal password known only to the trusted person. Both of these work on a normal Mac with no supervision and no MDM. - Have the trusted person install it for the whole machine, not just their user, through System Settings -> General -> Device Management, entering the admin password. Installing it system-wide is what makes removal require an administrator. It has to be the graphical route; the command-line tool has not been able to install profiles since macOS 11.
- Give the profile a device name so its entries are attributable in the log.
Result: a standard user can neither remove the profile nor change DNS servers. An administrator can do both: Apple documents that an administrator password overrides a removal password, so the password is belt-and-braces against a standard user, not a second lock. The account split is the lock. Done properly that is a stronger position than an unsupervised iPhone and needs no erase. Done while you are still an administrator it is worth little, because you can simply authenticate your way past it.
What a standard user can still do on a Mac
Be realistic about the remaining gaps rather than assuming the profile settles it.
- Browser-level encrypted DNS is the big one. Chrome and Firefox can resolve names themselves, in-process, bypassing the system resolver without needing admin rights. Close this with browser policy and by turning on your provider's bypass-method blocking.
- Running apps from the home folder. A standard user can still run a browser or proxy tool out of Downloads without admin rights.
- Another device entirely, or a phone on cellular. No Mac setting addresses that.
- Anything you can authenticate. If you kept administrator rights for convenience, you have kept the ability to undo all of it, and no amount of profile hardening changes that.
Check when it was last updated before relying on one. A menu bar app that offers an enable/disable switch to whoever is logged in is the opposite of what you want here, and an abandoned one may silently fail to apply on current macOS while still appearing installed. The configuration profile is the route to use. Where a provider offers a command-line daemon that runs as root and restarts itself, that is a reasonable second layer, because a standard user cannot stop it.
Android: the strongest lock of any phone, if you can reach it
Android has a mode called device owner. It is the rough equivalent of supervising an iPhone, it is free, it needs no company or management service, and on the specific question of pinning DNS it is stronger than what Apple offers. The catch is entirely in the setup.
What it locks
A device owner can forbid changes to Private DNS. That block is enforced in two separate places: the setting greys out in Settings, and the system refuses writes to the underlying value, so command-line tricks fail too. It can also forbid VPN configuration, sideloading, safe mode, adding users, and developer options, and can prevent a named app being uninstalled.
Why it beats the iPhone here
Turning on the no-factory-reset restriction also clears the flag that allows bootloader unlocking, and that flag survives a reset, which closes the easiest hardware route back in. What we cannot tell you with confidence is what happens after a recovery-mode wipe: reset protection tied to a Google account the trusted person controls is supposed to demand their password before the phone can be set up again, but we have only Google's documentation for that and nobody here has an Android phone to test it on. Treat it as likely rather than certain, and check it yourself before relying on it. On iPhone, by contrast, a restore from a computer simply clears supervision.
What setting it up actually involves
Two things make this easier than the iPhone route, and three make it harder. Easier: you do not have to wipe the phone, and on Android 11 and later you may not need a computer at all, because a helper app can run the one privileged command over wireless debugging. Harder: you must first remove every account from the device, plus any work profile, private space, or cloned apps; you have to turn on developer options; and the result depends on your manufacturer.
- Remove all accounts, work profiles, private space and cloned apps from the phone.
- Turn on developer options and USB debugging.
- Install a device-owner controller app and grant it the device owner role from a computer over USB. Check what signed the app first, and do not use a build labelled testkey. Do not grant the role through a privilege-helper app, or that helper ends up owning the device instead.
- In Settings, set Private DNS to your filtering provider's hostname.
- In the controller app, turn on the restrictions: no changing Private DNS, no VPN configuration, no unknown sources, no safe mode, no adding or switching users, no factory reset, and last of all no developer options.
- Have the trusted person set the controller app's own password, so you cannot open it and undo the list.
- Sign in a Google account the trusted person owns and controls, so reset protection has teeth.
Granting device owner hands an app the highest privilege on the phone. The available controller apps are small open-source projects, and reviewing one revealed things that should change how you approach this rather than merely caution you.
- Never install a build labelled "testkey". Some projects publish a second copy of each release signed with a well-known public key whose private half is published alongside it. Anyone can sign their own app with that key, and Android will accept it as an update to yours, inheriting device owner. Awkwardly, that is sometimes the build suggested as a workaround for phones that reject the normal one. Do not take that trade.
- Grant device owner directly, not through a helper app. If you use a privilege-helper to do the provisioning, that helper becomes the device owner, and helpers typically offer an unprotected button to hand it all back. The controller's own password then protects nothing.
- Treat the app password as a deterrent, not a lock. In the project reviewed it allowed four characters, hashed them weakly, stored the result in plain text, and left app backup enabled. The maintainer has declined several requests to harden it, so this is unlikely to improve.
So the honest position: the underlying Android restriction is genuinely strong, and stronger than iPhone on this specific point. What is missing is a trustworthy way for a non-specialist to reach it. Attempt this only if you can evaluate an app and its signing yourself. If that is not you, do not pick a controller app off a list because this page implied one exists.
Two smaller obstacles. Provisioning tends to fail where a phone still has an account or an extra user profile on it, which on Samsung usually means a Samsung account and Secure Folder rather than anything unusual; both can be removed. Some Oppo and Realme phones reject the standard route outright. And the popular helper that lets you do this without a computer is currently broken on the newest Android, so plan on using a computer.
If none of that is realistic, use Private DNS as ordinary friction, accept that you can switch it off, and put your weight on a record someone else holds. That is a legitimate setup, and a better one than a device-owner install you did not understand.
Without device owner, Private DNS cannot be locked at all. Family Link does not cover it; a supervised child can switch it off in Settings in seconds. Any guide suggesting otherwise is wrong, and this one used to imply it.
Windows: the account split does more than you would think
Windows has no supervision mode and nothing like a profile removal password. What it does have is a real administrator boundary, and on this particular question that boundary is stronger than people assume.
A standard account genuinely locks the DNS setting
Every route to changing DNS servers on Windows requires administrator rights: the Settings app, the old Control Panel dialog, the command line, PowerShell, and editing the registry directly. Microsoft's own policy documentation says it twice, noting that non-administrators can view the dialog but not change it regardless of any policy. The hosts file, firewall rules, and installing or stopping a service are all admin-gated too.
- The trusted person creates their own administrator account with a password you never see.
- Your daily account is changed to Standard.
- Check your account is not in the Network Configuration Operators group, the one non-admin group permitted to change DNS. Run
net localgroup "Network Configuration Operators"from any prompt; Home has no user-management console for this. It is empty by default, so this is a thirty-second confirmation rather than the likely problem. The browser gap below is the likely problem.
This is where Windows differs from a Mac, and it matters. A Mac's DNS profile is system-wide. On Windows the setting you just protected belongs to one network adapter, so with no administrator rights at all you can join a different Wi-Fi network or a phone hotspot and use whatever DNS that network hands out, or create your own personal VPN connection, which brings its own.
Bigger still: you can install a browser into your own user folder without a password and turn on its built-in encrypted DNS, which skips the Windows resolver completely. Firefox has it on by default in the US, Canada, Russia and Ukraine, and anyone anywhere can switch it on in two clicks. Unless you close the browser gap, DNS filtering on Windows is one download away from irrelevant. Do that with browser policy, written to the part of the registry only an administrator can change. Be aware that policy reaches Edge, Chrome and Firefox and not much else: Brave, Vivaldi, Opera, Tor Browser and any portable build ignore it, which is what app control or a filtering client installed as a service is for.
Making the DNS setting follow the machine, not the adapter
- Easiest and most robust: install your provider's Windows client or command-line tool as a service. It needs an administrator to install, and a standard user cannot stop or remove a service.
- Or add a catch-all name-resolution policy rule, which applies across every network rather than one adapter, and lives in a registry area a standard user cannot touch. One trap worth knowing: if anything ever writes one of these rules through Group Policy, and VPN or corporate agents do, Windows ignores your local rules entirely and says nothing. Two rules covering the same names also cancel each other out rather than one winning, and both failures leave you unfiltered rather than blocked.
- If you want encryption enforced, register your resolver's encrypted-DNS address first, then set the machine policy to require encryption. Registering it is not optional: Windows only recognises Cloudflare, Google and Quad9 out of the box, so a filtering provider has to be added by hand or "require encryption" will stop name resolution altogether. Recent versions call the setting Configure encrypted name resolution. It fails closed, which for this purpose is a feature.
- Then close the browser gap, or none of the above matters.
On Windows, an adult can be a managed member of a family group. Microsoft states plainly that family members can be people of any age, that only the organiser can change a member's safety settings, and that only an organiser can remove someone from the group. So a trusted person really can hold settings you cannot alter, which is something Apple does not permit between adults.
Two caveats, and the second is stronger than it sounds. The web filtering is still Edge-only, and while turning it on is meant to block other browsers, Microsoft's current wording no longer promises that, so verify it rather than assume it. And Microsoft's own article on adult enforcement opens by calling it settings "wrongly applied", publishes a command to undo them, and says it is actively working on letting adult members opt out. Microsoft treats this as a defect it intends to remove, not a feature to build on. Use it as a layer; do not make it the foundation.
Everything above rests on the administrator password being a boundary. Without disk encryption it is not one. Anyone who can restart the machine into recovery, or boot from a USB stick, can reset that password using a well-documented procedure that takes about ten minutes and needs no special skill. That is not a determined-adversary scenario, it is a search away.
So turn on device encryption. It is available on every edition of Windows, not just the expensive ones, and on recent versions the old hardware requirements have been dropped. One catch that defeats people: if the PC only ever uses local accounts, the drive is encrypted but the key is left unprotected, so sign in with a Microsoft account at least once and confirm encryption is actually on. Keep the recovery key with the trusted person, and read Lockout first, because handing over a recovery key badly is its own way to lose your data.
The ceiling on Windows is worth stating plainly: a standard account, with the trusted person holding the administrator password, disk encryption turned on, DNS on the router and on the machine, and browser policy locking encrypted DNS. An administrator can still undo all of it. That is the trade, and for most people it is enough.
Android, Windows and Mac: a DNS client someone else can lock
Everything above locks the operating system's own DNS setting. The other route is a DNS client that belongs to the trusted person's account and refuses to be switched off. Cloudflare's Zero Trust service does this, and its free plan covers up to 50 users, which is any household.
- The trusted person creates the Zero Trust account and is its only administrator. You never hold the login.
- They write Gateway DNS policies by category (adult content, gambling, proxies and VPNs, newly seen domains) and add any specific domains.
- They install the Cloudflare One client on each device and enrol it in the organisation.
- In the device profile they turn on Lock WARP switch, so the switch cannot be turned off on the device, and turn off Allow device to leave organization. If a real exception is ever needed, they can issue a one-off admin override code rather than handing over the login.
While you are here: close Private Relay
If you use iCloud Private Relay, it encrypts DNS resolution for Safari browsing, the DNS lookups of every app on the device, and insecure app traffic. If your filtering is set on the router or typed into the device as a plain DNS server, that routes around it: device-wide name resolution stops being filtered or logged, which quietly undoes both halves of the setup. Apple states that an encrypted-DNS profile or app installed on the device is used instead of Private Relay's own resolver, so a NextDNS or AdGuard profile should keep filtering and logging. Test it on your device rather than assume, and turn Private Relay off anyway if you want one fewer moving part.
- Turn off Limit IP Address Tracking for each network you use, on each device. It is a per-network setting, so it has to be repeated rather than set once.
- Better, because it does not depend on a toggle you could flip back: block Apple's Private Relay hostnames at your DNS provider. Apple documents that a network refusing to resolve these will cause Private Relay to decline to engage and prompt the user instead. Several filtering providers include this in their bypass-blocking option already.
- On a supervised iPhone, the restriction that disables Private Relay outright is the reliable version.
If you will not supervise: what actually holds on an unsupervised iPhone
The DNS profile cannot be locked without supervision, but since iOS 26.4 a different stack can. It does not lock DNS. It locks the things that make bypassing DNS useful, and it puts every switch behind a passcode someone else holds.
- The trusted person sets the Screen Time passcode (Lock Screen Time Settings) and turns on Content & Privacy Restrictions. At the recovery prompt they enter their own Apple Account, one whose password you have never seen, or they skip it. See The trusted person.
- Under App Installations & Purchases, set Installing Apps and Deleting Apps to Don't Allow. No new browser or VPN can arrive, and no blocker can be deleted. This matters more than it looks: NextDNS documents that on iPhone a VPN's own DNS silently overrides the encrypted-DNS profile while the profile still shows as active.
- Set Web Content to Only Approved Websites if you can live with an allowlist, or Limit Adult Websites if not. See Allowlist mode.
- Add a blocker built on Apple's Screen Time framework, the kind that asks for Screen Time access the first time you open it. Its blocks are enforced by iOS rather than by the app, so they hold when the app is closed, and on iOS 26.4 or later turning its access off under Apps with Screen Time Access asks for the Screen Time passcode. Some also stop their own deletion while a block is running.
- Turn off Share Across Devices, or set every other device on the Apple Account up just as strictly. A second iPad with none of this is the bypass device.
- Keep the DNS profile for the record and the category filtering, and agree what its going quiet means, as described below.
If you will not supervise: detect instead of prevent
Most people reading this will not erase their phone, and that is a reasonable decision rather than a failure of nerve. The honest alternative is not a weaker lock. It is a different strategy: accept that the profile can be switched off, and make switching it off immediately visible.
This works because of an asymmetry worth thinking about. Turning the filter off does not just unblock things, it stops the log. A phone in daily use produces a constant stream of DNS queries. When that stream ends, the record of your day ends with it, and that absence is as legible as anything the log would have contained.
- The trusted person owns the account, so you cannot clear the log or shorten its retention to cover a gap.
- Agree explicitly that a gap is an event. Say it out loud, at setup, while things are calm. This is the sentence that does the work, because it converts turning the filter off from a way to hide into the most visible thing you could do.
- Remove the innocent explanations in advance. Pay for a tier that does not stop working when a monthly quota runs out, and mention travel or a flat battery when it happens, so a real gap is not lost in noise.
- Pair it with a tool that alerts on being disabled, if you can. A notification the moment protection stops beats a log reviewed on Sunday.
- Put the review cadence in writing on the handoff worksheet, so this does not quietly lapse after a good month.
Most filtering DNS services have no tamper alert at all. If the profile is switched off, nothing is sent to anyone; the log simply stops. That is workable, but only if someone is actually looking, so check whether yours can notify before you rely on it. The same caution applies to accountability apps: coverage varies enormously, and at least one well-known product states in its own documentation that it cannot detect being uninstalled on iPhone, and only reports a device as inactive after it has been silent for seven days. A week is not an alert.
A heartbeat that catches more than silence
Silence tells you the phone stopped sending queries. It does not tell you the phone is running normally but unprotected, which is what actually happens when the DNS is switched to Automatic while everything else carries on. Those look different from the outside and only one of them is obvious.
Some providers publish a status endpoint that reports whether their filtering is in use for the request. Fetching that on a schedule turns "is the filter on right now?" into a question with a recorded answer, rather than something inferred from an absence.
- Find whether your provider offers a test or status URL that reports whether traffic is going through them.
- Set up a scheduled automation on the phone to fetch it, using the Shortcuts app and a Time of Day trigger.
- Turn off Ask Before Running so it runs without prompting.
- Have the result go somewhere the trusted person can see.
Several blocking apps report that as of iOS 26.4, released 24 March 2026, disabling an app's Screen Time access (Settings -> Screen Time -> Apps with Screen Time Access) can be made to require the Screen Time passcode rather than just Face ID or the device passcode. If that holds, it closes the long-standing hole where any blocking app could be switched off in Settings in seconds, and it makes a partner-held passcode meaningfully stronger than it used to be.
Three caveats. It is reported by app vendors rather than documented by Apple, so confirm it yourself: try to switch one app's access off and see what you are asked for. It is not on by default: it needs both Lock Screen Time Settings (the passcode) and Content & Privacy Restrictions turned on, and you should turn off Share Across Devices or the restrictions can be switched off from another device on the same Apple Account. And on iOS 26.4 to 26.6 users reported the toggle sometimes asking for Face ID instead of the Screen Time passcode, with the fix reported in iOS 27 betas, so test on the version you actually run. If it works as described, it is the single most useful thing an unsupervised iPhone user can enable.