List all cPanel domains

  1. This command will list all cPanel domain names, using WHM whmapi1 listzones command:
whmapi1 listzones | grep domain: | awk {'print $2'}

2. This command will list all cPanel domain names and their corresponding cPanel account

cat /etc/domainusers

3. This is the command to find the cPanel account that owns a domain name:

/scripts/whoowns exampledomain.com