Skip to content

Publishing IPv6 AAAA records on cPanel — when they help and when they break

Adding AAAA records on cPanel is one Zone Editor click, but the server-side IPv6 readiness and the dual-stack edge cases need attention. Here is the practical view.

A customer reports their website is intermittently unreachable from a mobile carrier with no clear pattern. The cPanel host serves IPv4 fine. The issue: the operator added an AAAA record pointing at the server’s IPv6 address, but the cPanel host doesn’t listen on port 443 for that address — only on the IPv4 interface. Mobile clients on IPv6-first networks try the AAAA, time out, and the user-experience layer reports random failures.

What’s happening

A AAAA record advertises an IPv6 address for a name. Dual-stack clients (most modern OSes) prefer IPv6 over IPv4 when both are published — they try the AAAA first and fall back to A only if the IPv6 connection fails. The fallback isn’t instant; depending on the OS, the user sees a 250ms to 2-second delay before the v4 attempt.

If the cPanel host has an IPv6 address assigned to the interface but Apache or LiteSpeed isn’t listening on it, every AAAA-following client hangs on connect. Same for mail: an AAAA on the MX target that doesn’t accept SMTP over IPv6 silently rejects messages from senders that prefer v6.

cPanel manages IPv6 separately from IPv4. The server has a “Basic WebHost Manager Setup” IPv6 address (used for shared services), and each account can have additional IPv6 addresses bound. The DNS layer doesn’t care — it publishes what you tell it — but the application and mail layers need explicit configuration.

How to verify

Confirm the AAAA record:

dig +short AAAA example.com
dig +short AAAA www.example.com

Confirm the server actually listens on that IPv6 for the relevant ports:

ss -tln '( sport = :443 or sport = :80 or sport = :25 )' | grep -E '\[.*\]'
curl -6 -v https://example.com
nc -6 -v example.com 443 < /dev/null

If curl -6 times out, the AAAA is published but the listener isn’t there. If the listener is there but the connection still fails, check firewall (ip6tables, firewalld, upstream network ACLs).

For mail:

dig +short AAAA mail.example.com
swaks --server "[2001:db8::1]" --port 25 --helo example.com

swaks over IPv6 will tell you immediately whether the mail listener accepts v6.

What to do

  1. Confirm the cPanel host’s IPv6 is configured and Apache/LiteSpeed listens on it. WHM > Server Configuration > Basic WebHost Manager Setup has the IPv6 field. After setting it, /scripts/restartsrv_httpd to make Apache pick up new listeners.
  2. Confirm Exim listens on IPv6 if mail is local. /etc/exim.conf should have local_interfaces = <;0.0.0.0;::0. WHM > Service Configuration > Exim Configuration Manager > Basic Editor has the interface field.
  3. Publish AAAA in the Zone Editor for every name that has an A record and is served over IPv6. The two should be kept in sync; one without the other creates broken behavior on dual-stack clients.
  4. Test from an IPv6-only network before declaring the rollout complete. Most operator laptops are dual-stack and quietly fall back to IPv4 on AAAA failure — you’ll miss the issue from your own desk.
  5. For a partial rollout, publish AAAA only on the names you’ve confirmed work over IPv6 — don’t blanket-AAAA every record because cPanel offers an “add IPv6 to all” button. The blanket option assumes every service is v6-ready, which isn’t always true.
  6. Don’t publish AAAA pointing at a NAT64 IP unless you’ve validated the application stack works through NAT64. Some legacy applications rely on the client IP being a routable v4 address in headers — NAT64 breaks that.

If your hosting provider doesn’t offer routable IPv6 (some smaller providers still don’t), document that AAAA is not available and skip the rollout. An AAAA at a Carrier-Grade NAT address is worse than no AAAA.

Stack Harbor enables IPv6 cleanly across cPanel fleets — DNS, web, and mail — as part of deployment management.