Hello folks,
In a cPanel server, there is a file "main" in "/var/cpanel/userdata/$username" which stores all accounts details associated with it. You can cat that file and see the Subdomains, Addon domains and Parked domains of a cPanel account.
EX:
#cat /var/cpanel/userdata/dipaklist/main
addon_domains: {}
cp_php_magic_include_path.conf: 0
main_domain: dipaklist.com
parked_domains: []
sub_domains:
- sub.dipaklist.com
That's all, hope this post will help you.
Enjoy !!! :) :)