iOS and macOS setup#

iPhone, iPad and Mac support encrypted DNS system-wide through a configuration profile: a small .mobileconfig file that points the device at your configuration using DNS over HTTPS. The GraceDNS web app generates this profile for you.

Download the profile#

  1. Open your configuration in the GraceDNS web app and go to the Install tab.
  2. Under Set up a device, choose iPhone / iPad or MacBook / Mac mini.
  3. Select Download .mobileconfig. The file is named gracedns-<configid>.mobileconfig.

The profile contains one DNS Settings payload (com.apple.dnsSettings.managed) that sends every lookup to https://dns.gracedns.eu/<configid> over DNS over HTTPS. It is generated in your browser and is not signed, so iOS and macOS show it as unsigned during installation. It holds only the endpoint address, so later changes to your rules take effect without reinstalling it.

Install on iPhone and iPad#

  1. Download the profile on the device itself, or download it elsewhere and send it to the device with AirDrop or email, then open it. iOS confirms with Profile Downloaded.
  2. Open Settings, General, VPN and Device Management (on iOS 14: Settings, General, Profile), select the GraceDNS profile and tap Install.

Encrypted DNS profiles require iOS and iPadOS 14 or later.

Install on a Mac#

  1. Download the profile and open the file.
  2. In System Settings, search for Profiles (depending on the macOS version, under General, Device Management or Privacy and Security, Profiles), select the GraceDNS profile and choose Install. On macOS 11 and 12, use System Preferences, Profiles.

Encrypted DNS profiles require macOS 11 or later.

Alternative: build the payload yourself or deploy with MDM#

Apple's profile format is documented XML. To write the profile yourself, or to create it in a mobile device management (MDM) system, use a com.apple.dnsSettings.managed payload whose DNSSettings contain:

Replace <configid> with your configuration id. An MDM can also deploy the downloaded profile file unchanged.

Alternative: filter one browser on a Mac#

On a Mac, Chrome, Edge, Brave and Firefox accept a custom DNS over HTTPS address without any profile; see the browser DNS over HTTPS guide. This filters that browser only. Safari on the Mac and all browsers on iPhone and iPad use the system DNS settings, so they need the profile.

Verify#

With the profile installed, visit a domain your configuration blocks. The page should fail to load, or show the GraceDNS block page if your configuration uses one.

Notes#

Back to docs.