How to configure IPv6 on your server
Updated 11/29/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
How to find your IP address on Windows: public and local
Find your public IP address in a second and your local IP from Settings, Command Prompt or PowerShell, on Windows 10 and 11.
Updated 11/29/2026Networking & DNSHow to use Cloudflare for DNS, cache and protection
Cloudflare offers fast DNS, global cache and basic protection for free. Here is how to connect it to your server.
Updated 11/29/2026Networking & DNSDNS record types explained simply
A, AAAA, CNAME, MX, TXT, NS: what each DNS record means and when to use it.
Updated 11/29/2026