<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceManagement",
  "identifier" : "/documentation/DeviceManagement/DNSSettings",
  "metadataVersion" : "0.1.0",
  "role" : "Device Management Profile",
  "symbol" : {
    "kind" : "Device Management Profile",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "mdm-profiles:DNSSettings"
  },
  "title" : "DNSSettings"
}
-->

# DNSSettings

The payload that configures encrypted DNS settings.

```
object DNSSettings
```

## Discussion

Specify `com.apple.dnsSettings.managed` as the payload type.

When installed from an MDM, the setting only applies to managed Wi-Fi networks.

When installed manually, this setting also applies to cellular networks.

### Profile availability

|||
|--------------------------|---------------------------------|
|Device channel            |iOS, macOS, Shared iPad, visionOS|
|User channel              |N/A                              |
|Allow manual install      |iOS, macOS, visionOS             |
|Requires supervision      |N/A                              |
|Requires user-approved MDM|N/A                              |
|Allowed in user enrollment|N/A                              |
|Allow multiple payloads   |iOS, macOS, Shared iPad, visionOS|

## Topics

### Objects

[`DNSSettings.DNSSettings`](/documentation/DeviceManagement/DNSSettings/DNSSettings-data.dictionary)

A dictionary that defines a configuration for an encrypted DNS server.

[`DNSSettings.OnDemandRulesElement`](/documentation/DeviceManagement/DNSSettings/OnDemandRulesElement)

A list of domain strings that determine which DNS queries use the DNS server.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)