Page 1 of 1

OpenVPN DNS Settings getting Removed on changing Proxy Settings/ DNS Settings on any Adapter on System

Posted: Wed Jan 05, 2022 4:51 pm
by Gurmeet Singh
The DNS Config that is pushed by the Access Server to the OpenVPN Mac Client gets deleted when I apply any DNS/ Proxy settings on System

I connected the OpenVPn Client and this is the value of the OpenVPN DNS Dcitionary in scutil

Code: Select all

> show State:/Network/Service/OpenVPNConnect/Info
<dictionary> {
  PrimaryService : 6788E5E1-1D47-40EC-A0A8-314E9FF0AEC2
}
> 
> 
> show Setup:/Network/Service/6788E5E1-1D47-40EC-A0A8-314E9FF0AEC2/DNS
<dictionary> {
  OpenVPNConnectOrigSearchDomains : OpenVPNConnectDeleteValue
  OpenVPNConnectOrigSearchOrder : OpenVPNConnectDeleteValue
  OpenVPNConnectOrigServerAddresses : <array> {
    0 : 8.8.8.8
  }
  SearchDomains : <array> {
    0 : corp.zscaler.com
  }
  SearchOrder : 5000
  ServerAddresses : <array> {
    0 : 1.1.1.1
    1 : 8.8.4.4
  }
}
Now if I either append one DNS Server in the DNS Settings of my Wifi or Change Proxy Settings (like I applied new pac file in Automatic proxy Configuration) then if u check openVPN dictionary again. You will see the Access Server Pushed DNS Server and DNS Suffix is removed.

Below is the output when I added 3.3.3.3 in my system DNS. Same issue happens on changing proxy settings as well

Code: Select all

> show Setup:/Network/Service/6788E5E1-1D47-40EC-A0A8-314E9FF0AEC2/DNS
<dictionary> {
  ServerAddresses : <array> {
    0 : 8.8.8.8
    1 : 3.3.3.3
  }
}


Re: OpenVPN DNS Settings getting Removed on changing Proxy Settings/ DNS Settings on any Adapter on System

Posted: Thu Jan 06, 2022 12:03 pm
by openvpn_inc
Hello,

Yes, this is an issue that we are aware of. On the one hand it is kind of expected that if you change DNS settings that those DNS settings then take precedence. But obviously it is not desirable that it wipes out existing configuration. But what is truly odd is that even when you do not touch the DNS settings in the network control panel of macOS, but touch some other setting like proxy server setting, it still wipes out the DNS settings that OpenVPN implements at start of VPN connection. This seems counterintuitive - why would a proxy server setting wipe out DNS settings? It is a bit strange.

We'll be discussing internally a bit about how this could be addressed.

Kind regards,
Johan

Re: OpenVPN DNS Settings getting Removed on changing Proxy Settings/ DNS Settings on any Adapter on System

Posted: Fri Jan 07, 2022 11:44 am
by Gurmeet Singh
Thanks Johan, looking forward to some configuration to make this work.

regards,
Gurmeet Singh