Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256411

Re: Which takes priority, ipv4, or ipv6?

From Vincent Lefevre <vincent@vinc17.net>
Newsgroups linux.debian.user
Subject Re: Which takes priority, ipv4, or ipv6?
Date 2023-03-27 14:10 +0200
Message-ID <GdTPH-frDo-1@gated-at.bofh.it> (permalink)
References <GdTG1-frks-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 2023-03-27 12:48:13 +0100, Richmond wrote:
> I have configured an ipv6 tunnel. If I visit this site:
> 
> http://ip6.me/
> 
> The "normal" test shows my ipv4 address, and the:
> 
> http://ip6only.me/
> 
> shows the ipv6 address.
> 
> However if I switch my DNS from opendns to the one provided by my ISP
> and then run the "normal" test it shows the ipv6.
> 
> The note says:
> 
> (preference depends on your OS/client)
> 
> So how is the preference determined? It seems to be determined by the
> DNS, but why or how do I tell for example with host -v?

It appears to be random (based on past tests).

But one can set the preference via "/etc/gai.conf". In particular:

#    For sites which prefer IPv4 connections change the last line to
#
#precedence ::ffff:0:0/96  100

I had to uncomment this line in the past when I had IPv6 issues.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Which takes priority, ipv4, or ipv6? Richmond <dnomhcir@gmx.com> - 2023-03-27 14:00 +0200
  Re: Which takes priority, ipv4, or ipv6? Jeremy Ardley <jeremy@ardley.org> - 2023-03-27 14:00 +0200
    Re: Which takes priority, ipv4, or ipv6? Richmond <dnomhcir@gmx.com> - 2023-03-27 14:20 +0200
      Re: Which takes priority, ipv4, or ipv6? Jeremy Ardley <jeremy@ardley.org> - 2023-03-27 14:20 +0200
  Re: Which takes priority, ipv4, or ipv6? Vincent Lefevre <vincent@vinc17.net> - 2023-03-27 14:10 +0200
    Re: Which takes priority, ipv4, or ipv6? Richmond <dnomhcir@gmx.com> - 2023-03-27 15:30 +0200
  Re: Which takes priority, ipv4, or ipv6? Michael Stone <mstone@debian.org> - 2023-03-27 21:00 +0200
  Re: Which takes priority, ipv4, or ipv6? davenull@tuxfamily.org - 2023-03-28 13:00 +0200
  Re: Which takes priority, ipv4, or ipv6? Andy Smith <andy@strugglers.net> - 2023-03-28 17:40 +0200
    Re: Which takes priority, ipv4, or ipv6? Tim Woodall <debianuser@woodall.me.uk> - 2023-04-02 07:20 +0200

csiph-web