Development discussion of WireGuard
 help / color / mirror / Atom feed
From: Matthias Urlichs <matthias@urlichs.de>
To: wireguard@lists.zx2c4.com
Subject: Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4
Date: Sat, 14 Mar 2020 18:08:35 +0100	[thread overview]
Message-ID: <303a9e73-23a9-4d87-b18e-51c8bf137e1d@urlichs.de> (raw)
In-Reply-To: <20200314165228.jxydplbghnri2ktm@vega>

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


  reply	other threads:[~2020-03-14 17:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13 14:52 Torsten Krah
2020-03-14  7:40 ` Stefan Tatschner
2020-03-14 14:53   ` Torsten Krah
     [not found] ` <CAADpXXY7ajNwRoF1sivACxUfFj-SpWf6o6+1Uq2N0XzEp3bvTw@mail.gmail.com>
2020-03-14 14:51   ` Torsten Krah
2020-03-16  5:05     ` Roman Mamedov
2020-03-16  8:30       ` Torsten Krah
2020-03-14 16:52 ` Luis Ressel
2020-03-14 17:08   ` Matthias Urlichs [this message]
2020-03-14 18:03     ` Luis Ressel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=303a9e73-23a9-4d87-b18e-51c8bf137e1d@urlichs.de \
    --to=matthias@urlichs.de \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).