Here is a ping short cut. It probably the fastest way to check for Internet access. This is also a CloudFlare DNS resolver.
$ ping 1.1
Pinging 1.0.0.1 with 32 bytes of data:
Reply from 1.0.0.1: bytes=32 time=17ms TTL=55
For IPv6, you can use:
$ ping6 2600::
Interestingly enough, these are also pingable:
$ ping 1234567890
Pinging 73.150.2.210 with 32 bytes of data:
$ ping 987654321
Pinging 58.222.104.177 with 32 bytes of data: