Setup SearchDomains with NETransparentProxyProvider

We have a macOS system extension with NETransparentProxyProvider which is able to intercept traffic and handle it. We also wanted to setup few search domains from our network extension. However, unlike PacketTunnelProvider, NEDNSSettings are completely ignored with NETransparentProxyProvider. So whats the best way to setup few DNS search domains when using NETransparentProxyProvider.

whats the best way to setup few DNS search domains when using NETransparentProxyProvider.

There isn’t one. I mean, transparent proxies are kinda meant to be transparent, and monkeying with search domains is anything but (-:

However, there are other options in this space. For example, if your product is deployed in a managed environment, you can instruct the site admin to include these search domains.

In an unmanaged environment you might be able to apply these settings using NEDNSSettingsManager. It’s focus is on encrypted DNS settings (NEDNSOverHTTPSSettings or NEDNSOverTLSSettings). I’ve never tried it with standard DNS settings (NEDNSSettings) but I can’t see anything that would explicitly block that.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Setup SearchDomains with NETransparentProxyProvider
 
 
Q