CloudLinux.ro
Networking & DNS

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 pricing

Related tutorials