cPanel API 2 Modules - DomainLookup
Warning:
The cPanel API 2 system is deprecated. We strongly recommend that you use UAPI instead of cPanel API 2.
Introduction
The DomainLookup module looks up an account's domains and document roots.
Available functions
-
cPanel API 2 Functions -
DomainLookup::countbaseddomains
— This function retrieves the total number of base domains. -
cPanel API 2 Functions -
DomainLookup::getbasedomains
— This function lists parked domains (aliases), addon domains, and main domains. -
cPanel API 2 Functions -
DomainLookup::getdocroot
— This function retrieves a domain's document root file paths. -
cPanel API 2 Functions -
DomainLookup::getdocroots
— This function retrieves all of the domains' document root file paths. -
cPanel API 2 Functions -
DomainLookup::getmaindomain
— This function retrieves a cPanel account's main domain.