---
title: "List the domains that have their own DNS zone"
method: GET
path: "/DomainLookup/getbasedomains"
tags: ["DomainLookup"]
---

# List the domains that have their own DNS zone

`GET /DomainLookup/getbasedomains`

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.

## Query parameters

- `return_temporary_domain` 0 | 1

## Response `200`

HTTP Request was successful.

- object
  - `data` object[] — One entry for each base domain on the account, sorted by domain name.
    - `domain` string, domain — The base domain.
  - `errors` string[], nullable
  - `messages` string[], nullable
  - `metadata` object
    - `transformed` integer
  - `status` 0 | 1 — * `1` — Success. * `0` — Failed. Check the `errors` field for more details.
  - `warnings` string[], nullable

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
