wgtunnel icon indicating copy to clipboard operation
wgtunnel copied to clipboard

Feature Request: Re-resolve ddns endpoint

Open merc4derp opened this issue 11 months ago • 23 comments

The biggest problem with the official app imo is that it won't re-resolve the endpoint unless you turn the tunnel off and back on. This means that if your endpoint's ip changes while the tunnel is active, you're stuck with no connectivity and you don't even know it.

There's no non-root solutions to this problem currently afaik.

Part of the problem is the fact that while the tunnel is active, your dns comes from the tunnel too. So if the endpoint switches ip, you can't even re-resolve because you lose access to the dns server.

Not sure how much agency you have on android with this app. In a typical linux installation you periodically re-resolve every 5mins or so via 1.1.1.1 or something outside the tunnel, compare to cached resolution and if different restart the tunnel. I'm sure you know of these workarounds already.

If you could implement something similar in this app, it would be fantastic.

merc4derp avatar Jul 11 '23 14:07 merc4derp