An object to create and manage an DNS proxy provider’s configuration.
- iOS 11.0+
- macOS 10.15+
- Mac Catalyst 13.0+
A DNS proxy allows your app to intercept all DNS traffic generated on a device. You can use this capability to provide services like DNS traffic encryption, typically by redirecting DNS traffic to your own server. You usually do this in the context of managed devices, such as those owned by a school or an enterprise.
You create a DNS proxy as an app extension based on a custom subclass of the
NEDNSProxy class. You enable and configure this proxy from within your app using the singleton proxy manager instance provided by the
shared() type method of the
NEDNSProxy class. For example, for a proxy that performs a simple redirect, you can use the proxy manager to define and dynamically configure the destination IP address of the redirected traffic.
Instances of the proxy manager are thread safe.