A few weeks ago one of our readers reached out on our support channel to tell us that our site wouldn't work for them. It simply wouldn't load on their browser (Chrome).
After a little back and forth, we realized that our web server lacked IPv6 support. We weren't listening to the requests made on IPv6. If you don't know already, IPv6 stands for Internet Protocol version 6 and it is intended to replace IPv4 network, which is what our original web—as-is—has had a run on for the last two decades.
Google is out with stats on IPv6 adoption lately (as of October 2018) and the numbers are rising steadily. Over twenty five percent of the Internet is now using IPv6 and from the graph it appears that well over half would be onboard in the coming few years. More importantly, a % of those who are on IPv6 already are exclusively so and cannot see your content if the website isn't configured to serve on the new protocol. (Updated per tweet.)
Through this quick post we will configure our web app/site for the new protocol.
This is how I set it up on Bubblin.
The Quad-A Record.
The first step is to add an AAAA Record on your DNS Manager. We needed a public IP on IPv6 so I made a request to our hosting provider (Linode) to provide me with one.
Once they responded, I went ahead and added our public IPv6 on the Remote Access Panel, like so:
I added the ugly looking records with IPv6 option (bottom three) as screenshot-ted above. Since changes to DNS take some time to percolate we'll leave the DNS manager here and focus on configuring our app-server
nginx for IPv6 next.
Nginx on IPv6
Now Bubblin is delivered on a strict https protocol so we are effectively a permanent on redirecting all our traffic (from http →) to https.
We use the Letsencrypt and Certbot to secure Bubblin with industry-grade SSL.
Shown below is an excerpt from our
nginx.conf.erb on production:
Notice the `listen [::]:80 ipv6only=on;` directive inside the server block and the HSTS directive at the bottom.
To test your
$ sudo nginx -t // success $ sudo nginx -s reload
Hoping that your DNS percolated by the time the nginx was cofigured (sometimes it may take up to 24 hours), now it is time to test if the website is available on IPv6:
$ curl https://bubblin.io -6
The HTML page from your site should be served correctly.
That's all folks.
Hi, I'm Marvin Danig, CEO and Cofounder of Bubblin.
P.S.: Reading more books on web will help your attention span.