Oct 10, 2018

[HDGEM] How to get a list of domains on cPanel server

On cPanel servers /etc/domainusers will list each cPanel account and its main domain, but this is not every domain on the server.  

/etc/userdomains will list every domain on a server, but it will also include sub-domains, which you may or may not consider relevant depending on your use case for such a list.


# cat /etc/domainusers | sort
# cat /etc/userdomains | sort


--
Posted By Blogger to HDGEM at 2/23/2017 07:29:00 AM