Network Manager OpenConnect does not use DNS servers provided by the server
Same problem as described here The OpenConnect VPN client still uses the DNS servers of the local computer instead of DNS server provided by ocserv. Someone provided some docs for a solution. https://github.com/systemd/systemd/issues/6076#issuecomment-731149566
I use the latest version of Ubuntu.