How to access Gmail and Google Reader over IPv6

25 November 2008

I just figured out a really simple and obvious way to access Gmail and Google Reader over IPv6 that doesn’t require the use of hacky portals such as IPv6Gate.

Google already offers their search engine service via IPv6 at ipv6.google.com. This works fine, although it doesn’t work with Gmail or Google Reader, as for some reason, they have not added those services to the ipv6.google.com domain — they only work if you are on the www.google.com domain.

However, there is a way to access Google’s IPv6 server and still retain the www.google.com domain: edit your /etc/hosts file.

To access Gmail and Google Reader via IPv6, add the following line to your /etc/hosts file (if you are on Windows, add it to your C:\Windows\System32\drivers\etc\hosts file):

2001:4860:c003::68 www.google.com mail.google.com

If you are using Firefox, you will need to restart your browser before it picks up the changes (as it uses an internal DNS cache).

You can add support for other services such as Google Images by adding the respective domain names to the end of that line. However, adding Google Maps gets a little tricky, as the map images are served off several different servers. In the comments below, Jari K gives us an /etc/hosts line that adds the map image servers, which apparently works.

Please note that the above IPv6 address may have changed since I wrote this post. To find out the most current IPv6 address that Google uses, use the following command:

dig +short aaaa ipv6.google.com

If the IPv6 address that you get from that command is different from the one I posted above, please let me know in the comments!

I wonder what the likelihood of Google adding AAAA records to the main www.google.com domain is.

8 replies

Leave a reply