I created a VPN application using NEPacketTunnelProvider and set some ip lists for includedRoutes. My matchDomains is set to @[@“”], and now all my DNS resolution traffic will be sent from the utun port
Now there is a requirement. We have a domain name whose DNS resolution traffic does not want to be sent from the utun port. What should I do?
NEDNSSettings *DNSSettings does not provide a blacklist of DNS domain names
Although I know this is not very good, I still tried to add a large number of domain whitelists to matchDomains, but it seems that there is a bottleneck. When I add more than 5000 domains to matchDomains, the Internet will report an error Unknown host
Now there is a requirement. We have a domain name whose DNS resolution traffic does not want to be sent from the utun port. What should I do?
NEDNSSettings *DNSSettings does not provide a blacklist of DNS domain names
Although I know this is not very good, I still tried to add a large number of domain whitelists to matchDomains, but it seems that there is a bottleneck. When I add more than 5000 domains to matchDomains, the Internet will report an error Unknown host