How to to list Subdomains, Addon domains and Parked domains of a cPanel account?

Started by Dipak Bhoi, April 01, 2015, 03:29:56 PM

Previous topic - Next topic

Dipak Bhoi

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 !!! :) :)


MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.