Skip to content

IPv6 in WHM — assigning a /64, exposing accounts, and the order of operations

cPanel grew real IPv6 support but the defaults still treat v6 as second-class. A walk through enabling v6 on a server, assigning a range, and binding it to accounts.

A customer asks why their site has no AAAA record when the server clearly has IPv6 connectivity. cPanel does support IPv6, but enabling it is opt-in, the WHM UI surfaces it less prominently than v4, and the assignment model is range-based — you give an account a slice of a /64, not a single address. Sites that should serve v6 don’t, and the answer is usually that the v6 plumbing was never enabled, not that something broke.

What’s happening

cPanel introduced first-class IPv6 support in version 80 with the IPv6 Ranges system. A range is a contiguous slice of a /64 (typical) that you assign to a single account; cPanel then auto-generates an AAAA record and binds the slice to the Apache vhost. The default cPanel install has IPv6 disabled at the WHM Tweak Settings level — Use IPv6 if available defaults to off. Even when v6 connectivity is in place at the network level, accounts will not get AAAA records until both Tweak Settings is flipped and an IPv6 range is configured.

How to verify

Audit the v6 state of the server before adding ranges:

whmapi1 list_ipv6_ranges
ip -6 addr show
whmapi1 get_tweaksetting key=ipv6
sysctl net.ipv6.conf.all.disable_ipv6
dig +short AAAA example.com

The first command lists ranges WHM knows about; the second shows what the kernel actually has bound. If the kernel has v6 but WHM has no ranges, the connectivity is there but cPanel isn’t using it. The Tweak Setting reading 0 or disabled is the most common reason AAAA records are missing.

The fix

  1. Flip the Tweak Setting: whmapi1 set_tweaksetting key=ipv6 value=1. This enables the IPv6 ranges interface in WHM and tells cPanel to generate AAAA records for accounts assigned a range.
  2. Add the range in WHM under IPv6 Ranges or via whmapi1 create_ipv6_range name=primary range=2001:db8:42:1::/64 enabled=1. The range becomes the pool from which account slices are carved.
  3. Assign slices to accounts through whmapi1 enable_ipv6 user=acme range=primary. WHM allocates a sub-range from the pool and updates the account’s DNS to include AAAA records.
  4. Verify externally: dig +short AAAA example.com from a v6-enabled resolver should return an address inside the range. curl -6 https://example.com/ from a v6-connected client should serve the site.
  5. Check Exim and FTP for v6 listening — ss -tln | grep :: should show ports 21, 25, 80, 443, 587 bound to the v6 stack. If they’re missing, the cPanel restart that followed the Tweak Setting flip didn’t pick up the new config; restart cpsrvd and exim manually.

For shops where v6 is a customer requirement (procurement contracts often spell it out), Stack Harbor’s cPanel and WHM management team enables v6 across the fleet and tracks per-account AAAA coverage so the “do you support IPv6” question always has a confident answer.