What Is IPv6 and How Can You Make Sure Your Site Is IPv6 Ready?

Scan Server Featured Image

If you’ve done any reading about websites and the Internet, you’ve probably heard the term IPv6 used. You might have even seen it while adjusting your router’s settings. Even though you’re aware of the term, you may not know what it means.

Of course, you may never have heard about IPv6 either. Whether you have or not, IPv6 is important to the Internet, especially as we move forward. If you have a website, it’s especially important that you familiarize yourself with IPv6.

Also read: Why Are Some ISPs So Slow to Adopt IPv6?

What Is IPv6?

Before we get into explaining what IPv6 is and how it differs from IPv4, let’s take a look at what an IP address is. Whenever you type the address of a website into your browser, this name goes through a Domain Name Server, which in turn gives your browser the IP address of the server. These addresses are how computers communicate with each other across the Internet.

For years, IP addresses used a 32-bit address space with the following format: 123.45.67.89. This is the maximum number of digits an IPv4 address can use. This means that you’re limited to IP addresses that fall between between 000.000.000.000 and 255.255.255.255.

It’s actually slightly more complicated than that, as large blocks of address are reserved for special use cases, but you get the idea.

There are a lot of servers out there, and many websites you encounter use more than one IP address. In fact, most of them use more than one IP address.

IPv6 to the Rescue

Unlike IPv4 and its 32-bit address space, IPv6 uses a 128-bit address space. Because these IP addresses are longer, they won’t be exhausted, which is already a problem. This also means that they look slightly less friendly.

An IPv6 address uses eight groups of four digits. Furthermore, these are hexadecimal, which allows for even more variation. An example IPv6 address looks like 2001:0db8:0000:0000:0000:8a2e:0370:7334.

How Do You Make Sure Your Site Is IPv6 Ready?

You don’t simply replace IPv4 with IPv6. Instead, the two will run side-by-side for some time. Adding IPv6 support to your website can be done alongside your IPv4 configuration.

Server Benchmark Featured

First, you’ll need to configure your server to listen to IPv6 addresses. This varies by server software, so you’ll need to consult your documentation. For example, on Nginx, you just add the following line to your server config file:

listen [::]:443 ssl http2;

The [::]code represents IPv6 addresses.

Next, you’ll need to add an AAAA record for your website, as well as your bare domain. This is the IPv6 version of the A record, which you likely configured via your domain registrar when you set up your website.

You’ll also need to make sure your DNS servers have IPv6 addresses. Otherwise, even though your site will serve traffic over IPv6, you’ll still need IPv4 to actually point your users there. You can check this using the whois command followed by your domain name.

Things are slightly more complex if you run a mail server as well. You’ll need to add an IPv6 address for your mail servers. If you list IPv4 servers in your SPF record for outgoing mail, you’ll need to list the IPv6 addresses as well.

This should at least give you an idea of where to start in adding IPv6 to your website.

Conclusion

While the numbers may look a little more complex than the older IPv6 IP addresses, IPv6 isn’t really all that complicated. Considering the trouble it can save you later on, you’d be better off setting up your site for IPv6 now rather than wait until you have to.

If you’re running your website from a home server, you’ll want to make sure you properly secure it. We can help you out there. Just check out our guide to securing your home Linux server.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Kris Wouk Avatar

Read next

When Sony shipped the first Walkman in 1979, chairman Akio Morita insisted on a second headphone jack and a “hotline” talk button, convinced it would be rude for one person to listen to music alone — and within a few years buyers had ignored the sociable features so completely that Sony quietly dropped them
Russia still custom-builds the Soyuz return seats for ISS crew members using plaster casts taken weeks before launch, because astronauts grow as much as five centimetres taller during a long-duration stay and a seat moulded to their Earth-shaped spine would no longer fit the body that comes home
The “CrackBerry” nickname stuck for a reason — and the variable-reward psychology that hooked early-2000s executives on their BlackBerrys is the exact same machinery now running every push notification on every smartphone in your pocket
Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
In 1843, Ada Lovelace described a brass-and-punched-card engine that could act on symbols as well as numbers, even composing music if harmony could be reduced to rules, inside seven translator’s notes three times longer than the paper itself
ARPANET sent its first message on 29 October 1969 from a lab at UCLA to a machine at Stanford, and the message was supposed to read ‘LOGIN’ — but the system crashed after the L and the O, meaning the first word ever transmitted over the network that became the internet was, by accident, ‘LO’.
In 1995, Microsoft shipped a cartoon-house interface called Bob, led by Melinda French, who married Bill Gates while it was in development — it demanded twice the memory of a typical home PC, sold roughly 30,000 copies, and was dead within a year, leaving behind the font Comic Sans and the animated assistant that became Clippy.