commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
22.214.171.124 and 126.96.36.199 are two Google public DNS.
As their address is really simple, it's easy to use this command to test if Internet is reachable.
Beware of large corporate networks however, that may use this address on router's loopbacks interfaces.