forcing re-resolve on reconnect

Paneologist
OpenVpn Newbie
Posts: 1
Joined: Tue May 23, 2017 9:09 am

forcing re-resolve on reconnect

Postby Paneologist » Tue May 23, 2017 9:35 am

Hi all,
how can I force OpenVPN connect to resolve the hostname again, when reconnecting (e.g. changed network)?
(If I found where OpenVPN Connects logfiles are saved I would have attached - didn't find out how to get the familiar verbose output)

It keeps trying to connect to the configured servers in an endless loop:
EVENT: RECONNECTING
Contacting OLDIPADDRES via UDP
EVENT: WAIT
Connecting to [hostname] (OLDIPADDRESS) via UDPv4
Contacting OLDIPADDRES via UDP


but it never re-resolves the IP for the hostname, the way it does if I disconnect/connect:
beginning with:
EVENT: RESOLVE
Contacting NEWIPADDRESS via UDP


I need this, because on a local network DNS the configured hostnames are being resolved to another address, public open world IP is not routable in the local network for safety issues. So when I switch from mobile data (using the open world IP) to Wi-Fi (with the local IP) the hostname must be re-resolved.

It was why I switched from openVPN for Android to OpenVPN Connect, because openVPN for Android seems to have configured persist-remote-ip at compile time - or I did not find out how to disable that behaviour.

Thank you all for any hints :)

Paul

Return to “OpenVPN Connect (Android)”

Who is online

Users browsing this forum: No registered users and 4 guests