I use PacketTunnelProvider create a client. The DNS service is configured. After the Provider object is started, the DNS traffic is sent to the DNS server through the tun, but no corresponding output is displayed.
NSArray<NSString *> *dnsServers = @[@"30.30.30.30",@"8.8.8.8",@"8.8.4.4"];
NEDNSSettings *dnsSettings = [[NEDNSSettings alloc] initWithServers:dnsServers];
dnsSettings.matchDomains = @[@""];
tunnelNetworkSettings.DNSSettings = dnsSettings;
wireshark capture the utun7 virtual network adapter