How to Retrieve the Full List of Domains, Addon Domains, and Subdomains?

StephaneB

Member
Sep 12, 2013
8
1
3
cPanel Access Level
Root Administrator
Is there a way to pull the full list of domains, including addon domains and subdomains, on a cPanel server? I guess I could do it with an API but if there's an easier way, let me know.
 

LucasRolff

Well-Known Member
Community Guide Contributor
May 27, 2013
141
84
78
cPanel Access Level
Root Administrator
The absolute easiest way is /etc/userdatadomains which contains domains, including which type it is, their owner, the document root and php version if it's set.
 
  • Like
Reactions: cPanelLauren