# List the domains that have their own DNS zone

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.

Endpoint: GET /DomainLookup/getbasedomains
Version: 11.138.0.19
Security: BasicAuth

## Query parameters:

  - `return_temporary_domain` (integer)
    Whether to include the account's temporary domains in the result.
* 1 - Include temporary domains.
* 0 - Exclude temporary domains.
    Enum: 0, 1

## Response 200 fields (application/json):

  - `data` (array)
    One entry for each base domain on the account, sorted by domain name.

  - `data.domain` (string)
    The base domain.
    Example: "example.com"

  - `errors` (array,null)

  - `messages` (array,null)

  - `metadata` (object)

  - `metadata.transformed` (integer)

  - `status` (integer)
    * 1 — Success.
* 0 — Failed. Check the errors field for more details.
    Enum: 0, 1

  - `warnings` (array,null)


