macOS 11 (Big Sur) and later accept encrypted DNS through a configuration
profile. This is the same .mobileconfig file that iOS uses. It applies to
every app and every network interface.
In the dashboard, open the Setup page of the profile.
Under Encrypted DNS, fill in Name a device (optional), for
example Work MacBook. The Mac then shows as work-macbook in Logs and
Analytics.
In iOS and macOS configuration profile, choose DNS-over-HTTPS
(recommended) or DNS-over-TLS. Then click Download configuration
profile. The file goes to your Downloads folder as
opdns-<profile-id>-<device>-doh.mobileconfig.
The note under the download button on the Setup page tells you how macOS
labels the profile. The label is Verified when opdns signs the profile,
and Unverified while it is not signed. Both labels are normal. The
profile holds only the DNS setting. If you download it again with the same
device name, it replaces the installed profile. macOS does not add a second
one.
Double-click the downloaded file. macOS tells you that it downloaded the
profile and that you must review it.
Open System Settings, search for Profiles, and open it. On
macOS 15 and later, it is under General → Device Management. On
earlier versions, it is under Privacy & Security → Profiles.
Double-click the opdns profile, click Install, and authenticate.
Screenshot to comemacOS System Settings showing the opdns profile under Device Management with its DNS settings payload.macOS 15
The full message is Profile installation failed. The ‘VPN Service’
payload could not be installed. The VPN service could not be created.
macOS uses the same system component for encrypted DNS settings and for
VPNs. For this reason, the message says “VPN”, but the profile holds only a
DNS setting. The message means that macOS refused to add the setting. You
did not do anything wrong. Do these steps in order, and install the profile
again after each one:
Download the profile again. Since macOS 26.1, macOS only accepts a DNS
profile that installs for the full Mac, not for one user. Profiles from
the dashboard now say this. An older file can be without this setting.
Download a new file from the Setup page and install it.
Remove all previous DNS profiles. In System Settings → General →
Device Management (or Privacy & Security → Profiles), remove all
older opdns profiles and all profiles from other DNS services. macOS uses
one DNS profile at a time. An old profile, or a profile from an earlier
failed install, can cause the problem.
Pause VPN and DNS apps while you install. Apps that manage DNS can cause
the problem. Quit them or turn off their DNS feature, install the
profile, then turn them back on. Also read
Using opdns with a VPN.
Tailscale: click the Tailscale icon in the menu bar and clear
Use Tailscale DNS settings, or disconnect.
NetBird: in the settings of the NetBird app, turn off Enable DNS,
or disconnect. From Terminal, netbird down then
netbird up --disable-dns does the same.
Other apps: disconnect or quit any other DNS app (another filtering DNS
service, a “1.1.1.1”-style app), VPN app, or network filter or firewall
app. In System Settings → VPN and System Settings → Network,
look for DNS or filter entries from apps that you do not use now.
Remove these entries.
Restart the Mac. macOS can keep the settings of a removed profile or app
until a restart. Restart, then install the profile before you connect
any VPN.
If the install still fails, contact support. Include your
macOS version (Apple menu → About This Mac) and the VPN or DNS apps
that you installed. We will help you make it work.
While a VPN that sets its own DNS server is connected, macOS sends DNS
queries to that server instead of opdns. Filtering, logs and analytics
pause for that Mac. They start again when the VPN disconnects. The opdns
profile still shows as installed and on. This is confusing, but it is
normal. Apple documents this behavior. VPN apps cannot see or forward to an
encrypted DNS profile.
Tailscale: if Use Tailscale DNS settings is on, names go to the
resolver of Tailscale. That resolver passes names outside your tailnet to
the ordinary DNS of your network, not to opdns. To keep opdns, clear the
setting. You then lose the short device names of Tailscale, such as
my-server. You can also ask your Tailscale admin to add opdns as a
nameserver for the full tailnet. That change applies to every device on
the tailnet, not only this Mac.
NetBird: if your NetBird network sets a DNS server for all names, the
resolver of NetBird answers instead of opdns. If you turn off Enable
DNS, you keep opdns, but you lose the names of NetBird.
Any VPN: check it works while the VPN is connected.
If the check says that you do not use opdns, the DNS of the VPN is in use.
If your network has IPv6, you can enter the IPv6 address of the profile
instead. Copy it from the Setup page into System Settings → Network →
(your connection) → Details → DNS. This method is not encrypted and
carries no device name.
If you cannot download the file from the dashboard, use the template on the
iOS page. It works on
macOS too. Fill it in, save it as opdns.mobileconfig, and install it as
described above.