Greetings,
We have been strugling for some days implementing our VPN protocol over NEPacketTunnelProvider. It works as a split tunnel, that redirects some connections over it (it doesn't add the default route in the included routes list) but every DNS query must be redirected throught the tunnel.
The way we implement this is with 'matchDomains = [""]', and it should redirect every DNS query through the tunnel, making it the default.
But sometimes, after a reconnection, when the DNS server doesn't answer in time during normal use (internet browsing, chat, social media, etc...) iOS falls back to another DNS and doesn't use ours until the VPN is reconnected.
We would like to know how to avoid this behavior, and force the connection to go only over our servers, even if they never answer.
Thanks in advance.