Set up openvpn to use private VPN service dns server on connect

cp /etc/resolv.conf /etc/resolv.conf.default
#echo -n “$R” | $RESOLVCONF -p -a "${dev}"
echo -n “$R” | $RESOLVCONF -a “${dev}.inet”
;;

down)
$RESOLVCONF -d "${dev}.inet"
mv -f /etc/resolv.conf.default /etc/resolv.conf
;;

That’s been used successfully in the past (Change DNS when connected to VPN - #23 by Foxy_Stoat) as long as you don’t change the user/group in your .conf file.