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 and found their IP, then tried this...
root@server:/logs# wget
--2011-09-14 12:10:13--
Connecting to 2607:f8b0:4003:c00::6a:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: [following]
--2011-09-14 12:10:14--
Resolving 74.125.113.106, 74.125.113.147, 74.125.113.99, ...
Connecting to 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).
15 Answers
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 in your hosts file instead, or using wget --header="Host: " to override the URL-determined host header.
In order to avoid problems they announce their AAAA records only to DNS peers known to work.
From :
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.
At least for the search engine, the URL should work.
1Find 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.
Your ISP might not provide an IPv6 address for your network. There are sites that can show your public IPv6 address and test the browser's readiness.
From the command line you can check as follows (Ubuntu example):
$ ping6 google.com
ping6: connect: Network is unreachableAn alternative is to use Teredo tunnelling, for example, by using Miredo.
$ sudo apt-get install miredoNow:
$ ping6 google.com
PING google.com(2a00:1450:400b:c01::71 (2a00:1450:400b:c01::71)) 56 data bytes
...
$ wget
--2020-09-29 18:15:09--
Connecting to [2a00:1450:400b:c01::71]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-29 18:15:10 ERROR 404: Not Found.And wget should download index.html. I've seen no redirection.
In the case of the OP, obviously the issue was something else, since the connection was reported as successful.