Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-17 Thread Torsten Krah
Am Montag, den 16.03.2020, 10:05 +0500 schrieb Roman Mamedov: > If it is so important to you to force one or the other, then make > separate DNS > records for IPv4 and IPv6, server4.example.com, server6.example.com. Please read the first post again, that was not the question. kind regards

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-15 Thread Roman Mamedov
On Sat, 14 Mar 2020 15:51:51 +0100 Torsten Krah wrote: > resend to the list: > > Hm, sorry I don't get the message. Imho its down to the user. I can > choose to use ping or ping6 or tell e.g. java via a system property to > prefer IPv4 if dual stack is available. > > In wireguard I can force

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-15 Thread Torsten Krah
I don't use NetworkManager - just the wireguard command line tool - searching a way to configure the preference on v4/v6.

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-15 Thread Torsten Krah
resend to the list: Hm, sorry I don't get the message. Imho its down to the user. I can choose to use ping or ping6 or tell e.g. java via a system property to prefer IPv4 if dual stack is available. In wireguard I can force ipv6 only by writing an ipv6 address in the endpoint, but via dns ...

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-15 Thread Stefan Tatschner
On Fri, 2020-03-13 at 15:52 +0100, Torsten Krah wrote: > I would like to configure the client, so that I can tell him, to > either prefer IPv6 or IPv4 for the vpn connection. If you use the Wireguard Support in NetworkMananger, it does update the Endpoint dynamically. I am not sure if you can

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-14 Thread Luis Ressel
On Sat, Mar 14, 2020 at 06:08:35PM +0100, Matthias Urlichs wrote: > 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

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-14 Thread Matthias Urlichs
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.

Re: Endpoint address dns resolution - option to prefer IPv6 or IPv4

2020-03-14 Thread Luis Ressel
On Fri, Mar 13, 2020 at 03:52:19PM +0100, Torsten Krah wrote: > I've got an endpoint with a DNS name which has both, an A and > record. > I would like to configure the client, so that I can tell him, to either > prefer IPv6 or IPv4 for the vpn connection. The relevant source code can be