DNS in VPN split tunneling

Hi all.

I have the following scenario; MacOs only with IPv6 support (IPv4 disabled). VPN application with both IPv4 and IPv6 support.

My VPN app is creating three services thru NetworkConfiguration API; one is to register DNS (for IPv4 and IPv6), second is the IPv4 service with tunnel information (with override set to 0, because I have split tunnelling). Third is the IPv6 service, with tunnel IP also.

I'm facing a problem with DNS, when the Override is set to true, I can see the DNS listed. But when override is set to disable, the DNS disappear.

The idea is to have the IPv4 service with tunnel information, but with DNS configured.

What is the best way to set the DNS when IPv4 and IPv6 tunnel are required?

What is the best way to set the DNS when IPv4 and IPv6 tunnel are required?

For either IPv4 or IPv6, the best way to configure your DNS on a NEPacketTunnelProvider is by using NEDNSSettings. Make sure that any server that you are instantiating this object with supports a dual-stack network, i.e., IPv4 and IPv6.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
DNS in VPN split tunneling
 
 
Q