Openvpn does not update device DNS - Leak/Privacy issue

I am running Dietpi as an openvpn client of a paid/commercial server (no access or control of the server). Openvpn does not update the device DNS settings when connecting, even with DNS being pushed from the server, creating a DNS leak if the user/admin is not aware of this.

There are some automated solutions around - mainly using openresolv. Info 1 2 3. Has anyone else worked through openvpn/DNS problems? After some discussion here, I’ll probably put in a feature request for an option to handle this.

As a side note, my system runs a network namespace (netns) that separates all my client connections/traffic from my non-vpn traffic (except for the leaky DNS). Using separate netns could also be a big improvement on security/privacy for DIetpi in the future.