This now appears to be working, for outbound ping from on IPv6.
Note that this Azure virtual machine with a public IPv6 only, but no public IPv4, so IPv4 does not work. (I can SSH into the machine, on the public IPv6, then ping outwards on the IPv6
iotadmin@vmlwm2m001:~$ ping -6 google.com
PING google.com(syd09s17-in-x0e.1e100.net (2404:6800:4006:80b::200e)) 56 data bytes
64 bytes from syd09s17-in-x0e.1e100.net (2404:6800:4006:80b::200e): icmp_seq=1 ttl=115 time=3.11 ms
64 bytes from syd09s17-in-x0e.1e100.net (2404:6800:4006:80b::200e): icmp_seq=2 ttl=115 time=2.14 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 2.149/2.631/3.113/0.482 ms
iotadmin@vmlwm2m001:~$ ping -4 google.com
PING google.com (142.250.66.174) 56(84) bytes of data.
^C
--- google.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4086ms
Interestingly, local DNS resolution only supports IPv4 (Azure VMs must be dual-stack, so there is private IPv4 and private IPv6 ULA ranges). Although IPv6 DNS resolution to an actual IPv6 DNS server does work (as per the original post).
iotadmin@vmlwm2m001:~$ host -4 google.com
google.com has address 172.217.167.78
google.com has IPv6 address 2404:6800:4006:804::200e
google.com mail is handled by 10 smtp.google.com.
iotadmin@vmlwm2m001:~$ host -6 google.com
;; connection timed out; no servers could be reached
iotadmin@vmlwm2m001:~$ host -6 google.com 2001:4860:4860::8888
Using domain server:
Name: 2001:4860:4860::8888
Address: 2001:4860:4860::8888#53
Aliases:
google.com has address 172.217.24.46
google.com has IPv6 address 2404:6800:4006:804::200e
google.com mail is handled by 10 smtp.google.com.
However, I don't think IPv6 PING into the machine is working (this is fro my local dual-stack machine, the one I have SSHed in from):
sly@sigil:~$ ping lwm2m-0xacc5-dev.australiaeast.cloudapp.azure.com
PING lwm2m-0xacc5-dev.australiaeast.cloudapp.azure.com(2603:1010:2::d (2603:1010:2::d)) 56 data bytes
^C
--- lwm2m-0xacc5-dev.australiaeast.cloudapp.azure.com ping statistics ---
9 packets transmitted, 0 received, 100% packet loss, time 8190ms
There is no firewall on the box itself, and then NSG rules just allow ICMP. I'll have to check IPv4 (set up the machine with a public IPv4), but I'm pretty sure IPv4 PING works fine.