Set up SecDNS on macOS
macOS gained native DNS-over-HTTPS support in macOS 11 Big Sur via signed configuration profiles. The mobileconfig that SecDNS issues installs in a couple of minutes and protects every browser and app on the system.
What you will need
- A SecDNS account
- A Mac running macOS 11 Big Sur or newer
- Admin permissions on the Mac
- Safari (signed profiles install most reliably from Safari)
Setup steps
- Create a device in SecDNS. Sign in, open Devices and add a new macOS device. Copy the device id; the mobileconfig URL is
/api/dns/mobileconfig?profile=<id>. [screenshot placeholder] - Download the signed mobileconfig. From the device detail page click Download mobileconfig. Safari saves the file to your Downloads folder.
- Open the profile from Downloads. Open Finder, double click the file and confirm the prompt to review the profile in System Settings.
- Install the profile. In System Settings open Privacy and Security, then Profiles. Double click the SecDNS profile, click Install and authenticate with your admin password. [screenshot placeholder]
- Confirm the profile is active. System Settings should now list the SecDNS profile with a green check. macOS switches to DoH immediately for every interface.
- Test resolution. Open Safari and visit https://dns.google. The reported resolver should resolve to
dns.secdns.io.
Verify it works
From a Terminal window run scutil --dns | grep nameserver and confirm at least one entry points to the SecDNS DoH resolver. You can also visit https://dnscheck.tools, which shows the resolver hostname and ASN. Back in the dashboard the device Live Logs view should start filling within seconds.
Troubleshooting
- System Settings reports an invalid signature. Re-download the mobileconfig from Safari. macOS rejects profiles downloaded by some third party browsers because they strip the signature.
- Profile installs but DoH appears inactive. Open System Settings, Network, click the i icon next to your interface, then Details, DNS. The configured DNS servers should be greyed out because the profile overrides them.
- A VPN takes over DNS. Most enterprise VPNs push their own resolver while connected. Disconnect the VPN to confirm SecDNS is working, then coordinate with IT for a split-DNS configuration.
- Captive portals will not load. macOS detects portals before DoH engages, but some hotel networks are tricky. Temporarily disable the profile in System Settings, sign in, and re-enable it.
Notes
The DoH endpoint embedded in the profile is https://dns.secdns.io/dns-query/<device-id>. If you ever rotate the endpoint, regenerate the mobileconfig from the dashboard and macOS will replace the existing profile cleanly.