# DomainLookup

The DomainLookup module for UAPI.

## Count the domains that have their own DNS zone

 - [GET /DomainLookup/countbasedomains](https://api.docs.cpanel.net/specifications/cpanel.openapi/domainlookup/domainlookup-countbasedomains.md): This function counts the cPanel account's base domains: the primary
domain, its addon domains and its parked domains.

Note:

The count excludes temporary domains, and matches the number of entries
that the DomainLookup::getbasedomains function returns by default.

## List the domains that have their own DNS zone

 - [GET /DomainLookup/getbasedomains](https://api.docs.cpanel.net/specifications/cpanel.openapi/domainlookup/domainlookup-getbasedomains.md): This function lists the cPanel account's base domains: the primary
domain, its addon domains and its parked domains.

Note:

Subdomains are not base domains and this function does not return
them. Use the SubDomain::listsubdomains function for those.

## Return a domain's document root

 - [GET /DomainLookup/getdocroot](https://api.docs.cpanel.net/specifications/cpanel.openapi/domainlookup/domainlookup-getdocroot.md): This function retrieves the document root for a single domain on the
cPanel account.

Note:

If the domain does not exist on the account, the system returns the
account's public_html directory rather than an error.

## Return every domain's document root

 - [GET /DomainLookup/getdocroots](https://api.docs.cpanel.net/specifications/cpanel.openapi/domainlookup/domainlookup-getdocroots.md): This function retrieves the document root for every domain on the cPanel account, including the primary domain, addon domains, parked domains and subdomains.

