<!--
{
  "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/OnDemandRulesElement",
  "metadataVersion" : "0.1.0",
  "role" : "Device Management Profile",
  "symbol" : {
    "kind" : "Device Management Profile",
    "modules" : [
      "Device Management"
    ],
    "preciseIdentifier" : "mdm-profiles:DNSSettings.OnDemandRulesElement"
  },
  "title" : "DNSSettings.OnDemandRulesElement"
}
-->

# DNSSettings.OnDemandRulesElement

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

```
object DNSSettings.OnDemandRulesElement
```

## Topics

### Objects

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

A dictionary that provides per-connection rules.



---

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)