I noticed a bug at the Packet Tunnel Provider app for macOS (maybe also for iOS, I didn't test it there it):
If I'm configuring a split tunnel, with wildcard match domain (empty string) - the system should consult its DNS server for all domains first, as listed here - https://forums.developer.apple.com/thread/35027
Now I've added some searchDomains. When There's no split tunnel, or there's a split tunnel with 'Exclude Routes', everything goes well.
But if the split tunnel is configured with 'Include Routes', it seems that the searchDomains aren't added to the DNS queries.
For example:
Lets say searchDomains contains the postfix 'com'
- working scenario: I've defined some routes at the split tunnel exclude, and run ping google
this worked well and I got results for google.com
- not working scenario: I've defined some routes at the split tunnel include, where google is one of those routes.
running ping google won't work and I get the error:
ping: cannot resolve google: Unknown host