liboping
liboping copied to clipboard
It's pinging IPv6, despite IPv4 having precedence
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