iOS:Get Dns of network

When the VPN connection is successful, splitTunnel is closed(All traffic flows through VPN). How to obtain the DNS of the currently connected network. Physical network DNS? For example, DNS of current WiFi network.

Thanks

2022.5.13

For those following along at home, this is a continuation of this thread.

The questions I posed on that thread still stand. Can you post the replies here?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

So, lemme see if I’ve got this right:

  • You have an iOS app.

  • That app implements VPN functionality via a Network Extension packet tunnel provider.

  • You want the tunnel to come up automatically by default.

  • You don’t want that to happen if the primary physical interface has a specific DNS configuration.

Is that right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

No, it's not.

Which bits are incorrect?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

iOS:Get Dns of network
 
 
Q