DNSSettings.OnDemandRulesElement
A list of domain strings that determine which DNS queries use the DNS server.
Declaration
object DNSSettings.OnDemandRulesElementProperties
| Name | Type | Description |
|---|---|---|
Action Required | string | The action to take if this dictionary matches the current network. Allowed values:
Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |
ActionParameters | [DNSSettings.OnDemandRulesElement.ActionParameter] | An array of dictionaries that provide per-connection rules. The system uses this array only for settings where the Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |
DNSDomainMatch | [string] | An array of domain names. This rule matches if any of the domain names in the specified list matches any domain in the device’s search domains list. The system supports a single wildcard ( Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |
DNSServerAddressMatch | [string] | An array of IP addresses. This rule matches if any of the network’s specified DNS servers match any entry in the array. The system supports matching with a single wildcard. For example, Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |
InterfaceTypeMatch | string | An interface type. If specified, this rule matches only if the primary network interface hardware matches the specified type. Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |
SSIDMatch | [string] | An array of SSIDs to match against the current network. If the network isn’t a Wi-Fi network or if the SSID doesn’t appear in this array, the match fails. Omit this key and the corresponding array to match against any SSID. Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |
URLStringProbe | string | A URL to probe. This rule matches if this URL is successfully fetched and returns a 200 HTTP status code without redirection. Deprecated: iOS 27+ | iPadOS 27+ | macOS 27+ | visionOS 27+ |