SOLVED Enabling IPv6 support on subdomains?

bouvrie

Active Member
Apr 6, 2012
38
6
58
cPanel Access Level
Root Administrator
Via Home >> IP Functions >> Assign IPv6 Address I can assign IPv6 addresses to acounts on the server. However, examining the related /var/cpanel/userdata/username/cache.json files, makes me think that the IPv6 address is only applied to the 'main' domain, and not to subdomains.

Here's an example of such a cache file:
Code:
{ 
   "parkeddomain.example":[ 
      "username",
      "root",
      "parked",
      "parkeddomain.example",
      "/home/username/public_html",
      "{IPv4-address}:80",
      "{IPv4-address}:443",
      "",
      "0",
      "ea-php70"
   ],
   "subdomain.domain.example":[ 
      "username",
      "root",
      "sub",
      "subdomain.domain.example",
      "/home/username/public_html/sub",
      "{IPv4-address}:80",
      "",
      "",
      "0",
      "ea-php70"
   ],
   "domain.example":[ 
      "username",
      "root",
      "main",
      "domain.example",
      "/home/username/public_html",
      "{IPv4-address}:80",
      "{IPv4-address}:443",
      "{IPv6-address}",
      "0",
      "ea-php70"
   ]
}
I redacted the addresses, but notice that only the "main" domain.example has an IPv6-address mentioned, while others have an empty string there.

Does this mean the subdomains are NOT IPv6-ready? Or does the server only use the one in the 'main' account entry, for all subdomains/parked domains too?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

I tested this by assigning an IPv6 address to an account with multiple subdomains, and confirmed the subdomains were properly assigned the IPv6 address (the appropriate entries existed in the Apache configuration file and the DNS zone). I also confirmed that new subdomains added to the account are properly assigned the IPv6 address. The userdata entry you are looking for is in /var/cpanel/userdata/$username/$sub.domain.tld. EX:

Code:
ipv6:
  2001:0db8:1a34:56cf:0000:0000:0000:0000:
    dedicated: 1
Thank you.