OpenVPN client using pushed DNS servers

Hi all,

I'm trying to set up an OpenVPN client connecting to a server which pushes its own DNS addresses. On OpenVPN side this can be done by using script which runs on interface up/down events -- OpenVPN provides it with pushes from the server. However I'm unsure how to implement this on LEDE side.

On a conventional Linux distribution I'd use resolvconf. IIUC DNS servers on LEDE are managed by netifd which populates /tmp/resolv.conf.auto. Can I ask netifd (possibly via ubus call) to add/remove a DNS server?

Thanks in advance!

<> related link : [solved] No DNS over VPN