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
Despite having
precedence ::ffff:0:0/96 100(to prefer IPv4 connections) in/etc/gai.conf,(n)opingis preferring IPv6 addresses:pinguses the IPv4 address:But
(n)opingprefers IPv6:opingversion is Debian's1.10.0-5