Skip to content
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

It's pinging IPv6, despite IPv4 having precedence #70

Open
naoliv opened this issue Jan 31, 2023 · 0 comments
Open

It's pinging IPv6, despite IPv4 having precedence #70

naoliv opened this issue Jan 31, 2023 · 0 comments

Comments

@naoliv
Copy link

naoliv commented Jan 31, 2023

Despite having precedence ::ffff:0:0/96 100 (to prefer IPv4 connections) in /etc/gai.conf, (n)oping is preferring IPv6 addresses:

$ host example.net
example.net has address 93.184.216.34
example.net has IPv6 address 2606:2800:220:1:248:1893:25c8:1946
example.net mail is handled by 0 .

ping uses the IPv4 address:

$ ping -c 1 example.net
PING example.net (93.184.216.34) 56(84) bytes of data.
64 bytes from 93.184.216.34 (93.184.216.34): icmp_seq=1 ttl=53 time=114 ms

But (n)oping prefers IPv6:

$ oping -c 1 example.net
PING example.net (2606:2800:220:1:248:1893:25c8:1946) 56 bytes of data.
56 bytes from example.net (2606:2800:220:1:248:1893:25c8:1946): icmp_seq=1 ttl=52 time=113,06 ms

oping version is Debian's 1.10.0-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant