This test assumes that the first DNS result it gets for www.google.com is an
IPv4 address -- but it can equally well be an IPv6 address. Create the right
kind of socket to match.