-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tunnel+conf+ui: periodic update of endpoint ip #18
base: master
Are you sure you want to change the base?
Conversation
@tripplet @zx2c4 My email client was being stubborn (doesn't send plain text emails), and I think my problem is related to this patch. This patch is supposed to periodically update endpoint resolution as part of dynamic DNS behavior. I saw some comment on r/wireguard mentioning what they and my own systems are both encountering; that specifying a hostname with both AAAA & A DNS records, will never use the AAAA record. I did find some 4 year-old article on disabling IPv6 DNS resolution back in Go 1.8/1.9; but WG is using Go 1.17 now. I feel like the fix being done here, could be extended to solve this other problem as well; I did find some more up-to-date examples, that were also IPv6-friendly. Thank you for hearing me out on this. |
@tripplet it looks like from the code changes here, you got my message. Thanks!!! |
I suppose it would be reasonable to add an option to perform this once the last KeepAlive timeout reaches a certain threshold. Great PR nevertheless, the subject option is totally necessary. |
7a54454
to
56c6798
Compare
56c6798
to
47d280f
Compare
Thanks for submitting the patch. Note DNS answers include a TTL value that provide a hint for caching result. There are a few projects built on top of Wireguard that provide dynamic endpoint capabilities, via mDNS or a signalling server. |
Any idea why this was never merged? |
No idea I posted it to the mailing list but never got a response.
You can use the executable I build here: There is one downside I discovered: To get out of this state use the custom GUI, remove the UpdateEndpointIP setting and save the tunnel config. |
Hi,
This PR implements a an new config option "UpdateEndpointIP=0-65535" to periodically update endpoint IPs for dynamic DNS scenarios.