DNS is not properly set for Mac OS X Mojave

As I understand the vpnc-script is used used to setup DNS when connecting/disconnecting to VPN. I see that scutil is used for Mac OS.

I have Mac OS Mojave (10.14.6) and it looks like setting DNS with scutil does not work for modern OSX. When I connect using OpenVPN like this: sudo openconnect --authgroup=VPN-SSL-GROUP -u FIRST_LAST@domain.com vpn.domain.com

DNS resolution works only with nslookup but fails in browser and other software (for details see here)

In order to make it work I have to manually execute: networksetup -setdnsservers Wi-Fi 10.66.0.1, 10.66.0.2 when connected to VPN and networksetup -setdnsservers Wi-Fi Empty after disconnecting to reset DNS settings to default.

I think vpnc-script should be updated to support DNS configuration with modern OSX.

Assignee Loading
Time tracking Loading