RFC-3484: Traceroute should defaults to IPv6 instead of IPv4 if possible
Brought to you by:
buc
Traceroute defaults to IPv4 addresses even when IPv6 addresses are available. While there is the traceroute6 option, The RFC below appears to indicate that this should not be the case.
RFC-3484 - Default Address Selection for Internet Protocol version 6 (IPv6) https://www.rfc-editor.org/info/rfc3484
Jan Macku wrote:
Well, sounds reasonable, since ping(8) has long used the results of
getaddrinfo(3) to determine the default address family.
Can you imagine some negative use cases in practice due to the removal
of the current mandatory IPv4 default? (I mean the risk of significant
breakage of someone's habits, scripts, etc.)
Regards,
Dmitry Butskoy
Hello Dmitry,
Thank you for your prompt response.
I think this change should be safe. But even if it affects some scripts, mitigation should be straightforward by using the
-4option. As you mentioned, ping already has such a behavior.I forgot to mention that my request is coming from the RHEL issue tracker - https://issues.redhat.com/browse/RHEL-58449
Thank you
Regards,
Jan
Fixed in 2.1.6 .
Thank you for quick fix.