Endpoint address dns resolution - option to prefer IPv6 or IPv4
Matthias Urlichs
matthias at urlichs.de
Sat Mar 14 18:08:35 CET 2020
On 14.03.20 17:52, Luis Ressel wrote:
> A standards-compliant implementation should return an ipv6 address in
> the first position if one is available and the host has a working
> connection to the v6 internet.
Unfortunately that is necessary but not sufficient for the link to
actually succeed. Also a host might have two IPv4 (or IPv6) addresses,
only one of which works, so this problem is not v6-vs.-v4 specific.
Ideally some background process forked by `wg` or `wg-quick` should set
the first address, monitor the peer, and use the next one if it hasn't
been established after some configurable number of seconds (or when the
keepalive fails). Bonus points for re-resolving the address when it expires.
--
-- Matthias Urlichs
More information about the WireGuard
mailing list