Hi Tee77,
I believe I’ve created a working script which will allow you to use the dns servers from your VPN provider, with no requirement for on resolvconf or openresolv. I would appreciate it if you were happy to test, before doing so you should probably check out the script; it can be found here:
https://raw.githubusercontent.com/tomdoyle87/bash-scripts/main/connman-update-resolv
I reworked this script for resolvconf: GitHub - alfredopalhares/openvpn-update-resolv-conf: Script that updates DNS settings are pushed by the OpenVPN server
If you are happy to test, please follow the below instructions:
cd /etc/openvpn
sudo wget https://raw.githubusercontent.com/tomdoyle87/bash-scripts/main/connman-update-resolv
sudo chmod u+x connman-update-resolv
Replace ethernet_xxxxxxxxxxxxx_cable in connman-update-resolv with your actual connection, you can find this with connmanctl services
Update you vpn config with the following:
script-security 2
up /etc/openvpn/connman-update-resolv
down /etc/openvpn/connman-update-resolv
Thanks Tom.