Post

Replies

Boosts

Views

Activity

Reply to How to get default dns server when VPN is on?
A question regarding "use NEDNSSettings to capture only specific domains that your VPN is interested in and point them at a specific DNS server of your choice. Do not try and capture everyone else DNS traffic as well." Why? What about this description "If the VPN tunnel becomes the network’s default route, the servers listed earlier by NEDNSSettings become the default resolver and the matchDomains list is ignored." from https://developer.apple.com/documentation/networkextension/nednssettings/1406537-matchdomains? On full tunnel I want that all the queries will reach to the DNS servers I configured, is that a problem?
Sep ’20
Reply to Split tunnel + Include routes + search domains
Thanks for your answer, but I have 2 small questions: Just to be sure - even if the tunnel is for the default route (capture all traffic), the tunnel's DNS servers are not suppose to answer all queries? 2. Even with what you said, I'm pretty sure there's a bug on your side here (and not an edge case). Please see those 2 lines of code: let searchDomains = ["myComp.net", "myComp.com", "com", "atlassian.net", "Kings.dev", "Kings", "MyABC.com", "ABC.com", "Kings.com", "myComp"] newSettings.dnsSettings?.searchDomains = searchDomains Now run 'ping google' at the terminal and it would work great ('google' will get the 'com' from the searchDomains). However, moving "com" to the fourth location at the array (instead of at the first three): let searchDomains = ["myComp.net", "myComp.com", "atlassian.net", "com", "Kings.dev", "Kings", "MyABC.com", "ABC.com", "Kings.com", "myComp"] And 'ping google' doesn't work anymore. It seems that searchDomains has only "room" for 3 domains. Isn't it a bug (and not an edge case)?
Oct ’20
Reply to Split tunnel + Include routes + search domains
I also want to point out Eskimo's answer from 4 years ago - https://developer.apple.com/forums/thread/35027?answerId=122209022#122209022 So, you normally set up a VPN in one of three ways: full tunnel — The VPN is the primary interface and its DNS server is used by default. split tunnel, match domains — The VPN is not the primary interface and the system consults its VPN server for just the specified match domains. split tunnel, wildcard match domains — The VPN is not the primary interface and the system consults its DNS server for all domains first. The third option is what I want, but it seems very buggy. I'm not sure that NEDNSProxyProvider is the answer, because of several reasons: It's another extension that the customers would have to approve "do this in the context of managed devices" - I want the tunnel's DNS server for all devices, not only for managed devices
Oct ’20