hi:
I want to set up a DNS packet to enter the VPN tunnel. I set it this way, but it didn't work.
//networkSettings is NEPacketTunnelNetworkSettings
NEIPv4Settings *ipv4Setting = networkSettings.IPv4Settings;
NSMutableArray *routerArr = [NSMutableArray array];
for (NSString *ip in networkSettings.DNSSettings.servers) {
NEIPv4Route *route = [[NEIPv4Route alloc] initWithDestinationAddress:ip subnetMask:@"255.255.255.255"];
[routerArr addObject:route];
}
ipv4Setting.includedRoutes = routerArr;
1.How should I set up to properly import DNS packets into the tunnel?
2.I want to determine if the DNS packet can be imported into the tunnel?
can you set the next hop IP of DNS data?
No. It sounds like what you need here is a DNS proxy provider rather than trying to shoehorn this into a packet tunnel provider. Have you looked at DNS proxy providers?
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"