List all Subdomains, Addon domains and Aliases for a cPanel account

List all Subdomains, Addon domains and Aliases for a cPanel account

Here are 2 ways to list all domaind for a cPanel account, including: Subdomains, Addon domains, Aliases and Parked domains.

  1. From cPanel

Login to the user cPanel and go to “Domains”

2. From the terminal

For each cPanel account there is a file “main” located in /var/cpanel/userdata/USERNAME that contains all account details, including domain names.

cat /var/cpanel/userdata/USERNAME/main
Written by
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.