Community discussions

MikroTik App
 
maxpower
newbie
Topic Author
Posts: 26
Joined: Fri Dec 05, 2014 4:45 pm

6.48: Extract peer-dns from ovpn-client connection?

Tue Feb 28, 2023 5:11 pm

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.

Who is online

Users browsing this forum: No registered users and 25 guests