Comment Re:FreeBSD, Windows, and Android are working on IP (Score 1) 209
It is ping and traceroute that are the odd ducks. Most of the unix commands have a -4/-6 switch: telnet, ssh, mtr and so on.
It is quite annoying actually. I can ssh any domain and it will automatically work no matter if that domain has a A or AAAA record. But to ping the same domain I suddenly need to know.
It depends on what OS you're running. While linux [and my mac] has ping6 and traceroute6, Solaris 10 does not use separate version of ping/traceroute. So if you have a dual stack network, when it resolves the domain name, if it gets an IPv6 address, it'll ping that address. If it doesn't have an ipv6 interface, it's smart enough to know, and will ping the ipv4 address. Of course if you try to ping an IPv6-only target [ie ipv6.google.com] on a host that only has ipv4, it will say it's an unknown host. It's quite nice. Of course, there's lots of other annoyances with Solaris's ping, like the fact that you can't give a count of how many times to ping unless you also give a packet size.
### Host with dual-stack network
ender@host1:~$ host www.fearthepenguin.net
www.fearthepenguin.net has address 173.236.150.4
www.fearthepenguin.net has IPv6 address 2607:f298:2:122::49f:d613
ender@host1:~$ ping -s www.fearthepenguin.net 56 2
PING www.fearthepenguin.net: 56 data bytes
64 bytes from fearthepenguin.net (2607:f298:2:122::49f:d613): icmp_seq=0. time=37.2 ms
64 bytes from fearthepenguin.net (2607:f298:2:122::49f:d613): icmp_seq=1. time=35.7 ms
----www.fearthepenguin.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max/stddev = 35.7/36.4/37.2/1.1
### Host with IPv4 network only
ender@host2:~$ host www.fearthepenguin.net
www.fearthepenguin.net has address 173.236.150.4
www.fearthepenguin.net has IPv6 address 2607:f298:2:122::49f:d613
ender@host2:~$ ping -s www.fearthepenguin.net 56 2
PING www.fearthepenguin.net: 56 data bytes
64 bytes from apache2-argon.lusaka.dreamhost.com (173.236.150.4): icmp_seq=0. time=37.2 ms
64 bytes from apache2-argon.lusaka.dreamhost.com (173.236.150.4): icmp_seq=1. time=36.8 ms
----www.fearthepenguin.net PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max/stddev = 36.8/37.0/37.2/0.29
ender@host2:~$ ping -s ipv6.google.com 56 2
ping: unknown host ipv6.google.com