Oh, my apologies for the confusion.
I'm referring to setTunnelNetworkSettings
(https://developer.apple.com/documentation/networkextension/netunnelprovider/1406539-settunnelnetworksettings?language=objc).
I am utilizing NETransparentProxyProvider and configuring rules using NETransparentProxyNetworkSettings
within setTunnelNetworkSettings
and acquiring whole UDP traffic.
when setting the setTunnelNetworkSettings, it always generates a DNS query for a domain that is already cached by OS or browser using TTL time, which is correct.
My concern is that, when I stop the NETransparentProxyManager using stopVPNTunnel and set setTunnelNetworkSettings
to nil, it refrains from re-issuing the DNS query until the DNS TTL time has passed.
Ideally, it should not utilize the DNS cache once we stop the tunnel, similar to when we set setTunnelNetworkSettings
and it does not use the DNS cache and re-issues the DNS query