The DNS resolver settings of a network tunnel.


class NEDNSSettings : NSObject


Initializing DNS Settings

init(servers: [String])

Initialize the NEDNSSetting object.

Accessing DNS Properties

var servers: [String]

The DNS server IP addresses.

var searchDomains: [String]?

A list of domain strings used to fully qualify single-label host names.

var domainName: String?

The primary domain of the tunnel.

var matchDomains: [String]?

A list of domain strings used to determine which DNS queries will use the DNS resolver settings contained in this object.

var matchDomainsNoSearch: Bool

A Boolean that specifies if the domains in the matchDomains list should not be appended to the resolver’s list of search domains.


Inherits From

See Also


class NEDNSProxyProvider

The principal class for a DNS proxy provider app extension.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software