I'm using Kubuntu 17.10, and use OpenVPN to connect to my corporate network. Since Ubuntu moved over to the new "netplan" way of doing network related things, I have found that several things in OpenVPN no longer work (like trying to set your DNS servers using dhcp-options and the up/down update-resolv-conf script).
My question is: is it possible to set a "netplan" that will set the OpenVPN's interface (tun0) DNS servers once tun0 is created? Something like:
network: version: 2 renderer: networkd ethernets: tun0: dhcp4: yes dhcp6: no nameservers: addresses: [126.96.36.199,188.8.131.52]
I have managed to create my own vpn-up/vpn-down scripts which basically copy the appropriate yaml file over to
/etc/netplan and then executes
netplan apply, but this doesn't feel like the right way to do things.