Is it possible to extract peer-dns value (one or more ip addresses) from ovpn-client connection? Extracting from dynamic DNS field is not always possible (f.e. if peer dns is not used at the moment).
Idea is to make script which checks that peer DNS resolves hosts correctly and switching use-peer-dns from exclusively to no if its not. DNS may change after re-connection of ovpn session.