How do I properly access Google through IPV6?

I'm trying to access Google through IPv6. However, it seems to want to send me back to IPv4! I did a DNS lookup on IPv6.google.com at http://centralops.net/co/ and found their IP, then tried this...

root@server:/logs# wget http://[2607:f8b0:4003:c00::6a]/
--2011-09-14 12:10:13--  http://[2607:f8b0:4003:c00::6a]/
Connecting to 2607:f8b0:4003:c00::6a:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.google.com/ [following]
--2011-09-14 12:10:14--  http://www.google.com/
Resolving www.google.com... 74.125.113.106, 74.125.113.147, 74.125.113.99, ...
Connecting to www.google.com|74.125.113.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `index.html.2'

[ <=>                                        ] 11,670      --.-K/s   in 0.02s

2011-09-14 12:10:14 (474 KB/s) - `index.html.2' saved [11670]

How do I access Google (or other websites) solely over IPv6?

I tested Facebook as well, essentially same result (301 redirect).


Solution 1:

The "identity" (origin) of a web site is determined by the hostname you access it by. This redirect may be simply to ensure the site works as intended (e.g. having access to your login session cookie), not specifically to reject IPv6 access.

Try adding an IPv6 address for www.google.com in your hosts file instead, or using wget --header="Host: www.google.com" http://[2607:f8b0:4003:c00::6a]/ to override the URL-determined host header.

Solution 2:

In order to avoid problems they announce their AAAA records only to DNS peers known to work.

From http://www.google.com/intl/en/ipv6/:

Google over IPv6 uses the IPv4 address of your DNS resolver to determine whether a network is IPv6-capable. If you enable Google over IPv6 for your resolver, IPv6 users of that resolver will receive AAAA records for IPv6-enabled Google services.

Solution 3:

At least for the search engine, the URL http://ipv6.google.com should work.

Solution 4:

Find a carrier on the trusted testers list. Then lots of google-domains will be IPv6-accessible.

Sixxs is on this list for example, but you need to reconfigure and use their name servers.

Sorry, I don't know any further carriers on this list.