MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on April 01, 2015, 03:29:56 PM

Title: How to to list Subdomains, Addon domains and Parked domains of a cPanel account?
Post by: Dipak Bhoi on April 01, 2015, 03:29:56 PM
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 !!! :) :)