NEDNSProxyManager
An object to create and manage an DNS proxy provider’s configuration.
Declaration
class NEDNSProxyManagerOverview
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 NEDNSProxyProvider 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 NEDNSProxyManager 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.
Topics
Managing the DNS proxy configuration
shared()loadFromPreferences(completionHandler:)saveToPreferences(completionHandler:)removeFromPreferences(completionHandler:)