NE: All DNS queries must first go through the VPN's DNS servers

This commit is contained in:
Roopesh Chander 2018-11-23 13:04:55 +05:30
parent af49397caa
commit ff64ef79f1
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ class PacketTunnelSettingsGenerator {
// DNS
let dnsServerStrings = tunnelConfiguration.interface.dns.map { $0.stringRepresentation() }
networkSettings.dnsSettings = NEDNSSettings(servers: dnsServerStrings)
let dnsSettings = NEDNSSettings(servers: dnsServerStrings)
dnsSettings.matchDomains = [""] // All DNS queries must first go through the VPN's DNS
networkSettings.dnsSettings = dnsSettings
// MTU