dns - How do I properly access Google through IPV6?

17
2014-02
  • Charles Offenbacher

    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).

  • Answers
  • Kevin Reid

    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.

  • glglgl

    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.

  • Jens Erat

    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.

  • Tom Wijsman

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


  • Related Question

    ip - Possible to Use IPv4 and IPv6 at the same time?
  • pgdcracker

    Can IPv6 and IPv4 work simultaneously?


  • Related Answers
  • quack quixote

    It depends in what context you're referring to.

    • If you're asking whether a given NIC on a given OS can have both an IPv4 and IPv6 address at the same time, yes. This is more "coexisting" than "using simultaneously". Think of them as parallel network stacks -- network traffic will use one or the other but not both.

    • If you're asking whether a given application can access a network resource with both at the same time, kinda-sorta-maybe-ish. There are methods to allow interoperability and communication between the two, but they are 2 completely separate protocols.

    This great article "Interoperability between IPv6 and IPv4" covers it pretty well. The site appears to be down hence the cache link.

  • Creativehavoc

    IPv6 and v4 can "work simultaneously" through the use of tunneling. The wikipedia page here talks about it. I also suggest you read their page on IPv6 transitioning here they go into more specific descriptions on how they use tunneling for ipv6