How to configure IPv6 on your server
Updated 10/23/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 10/23/2026Networking & DNSHow to find your IP address on Linux: public and local
Find your public and local IP address on Linux: ip addr, hostname -I, GNOME Settings and the right way on a headless server.
Updated 10/23/2026Networking & DNSEmail DNS records: SPF, DKIM and DMARC
Set up SPF, DKIM and DMARC so your emails reach the inbox, not spam.
Updated 10/23/2026