In what order are DNS servers queried?
I can set DNS servers in several ways:
- Wi-Fi/Cellular network interface via DHCP / manual entry in settings.
- Using NEDNSSettingsManager.
- Via DNSSettings in NEPacketTunnelNetworkSettings.
Plus, on top of that, the user can have iCloud Relay enabled.
Which DNS servers are used and when?
Does NEDNSSettingsManager take precedence over iCloud Relay? Does it depend on the DNS protocol (Do53/DoH/DoT) set in NEDNSSettingsManager?
Does NEDNSSettingsManager take precedence over iCloud Relay? Does it depend on the DNS protocol (Do53/DoH/DoT) set in NEDNSSettingsManager?
Any Network Extension API should take precedence over iCloud Private Relay. It should not matter which protocol is used and the Network Extension should get the DNS traffic. This is particularly useful for cases where the DNS traffic needs to be encapsulated using a special protocol in your packet tunnel provider.