How to configure IPv6 on your server
Updated 7/20/2026
IPv6 is the new generation of IP addresses, with a practically unlimited space. More and more visitors connect over IPv6, so it is worth enabling.
1. Check if you already have IPv6
ip -6 addr
If you see an address starting with something like 2001:, you already have IPv6.
2. Test connectivity
ping6 -c 4 google.com
3. Add an AAAA record
So the domain answers over IPv6 too, add in DNS:
example.com. AAAA 2001:db8::10
4. Check from the outside
dig example.com AAAA +short
Firewall and IPv6
Do not forget that firewall rules must cover IPv6 as well. UFW handles both automatically when enabled correctly, see How to set up a firewall with UFW.
Your server is now reachable over both IPv4 (A record) and IPv6 (AAAA record), see DNS record types.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
Email DNS records: SPF, DKIM and DMARC
Set up SPF, DKIM and DMARC so your emails reach the inbox, not spam.
Updated 7/20/2026Networking & DNSHow to connect two servers over a private network
Link your servers through an encrypted WireGuard tunnel, so they communicate securely without exposing services to the internet.
Updated 7/20/2026Networking & DNSWhat is a CDN and when you need one
A CDN delivers content close to visitors, faster. Here is how it works and when it is worth it.
Updated 7/20/2026