# list

The dns list command lists all DNS zones associated with a project. This command provides details such as the zone ID, name, status, and creation date.

## Usage

```
cldkctl dns list [flags]
```

## Aliases

```
list, ls
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl dns list
```

2. To limit the number of displayed results, specify the limit flag:

```
cldkctl dns list --limit [number]
```

3. To filter the result by DNS zone name, use the name flag:

```
cldkctl dns list --name [dns-zone-name]
```

4. To view additional results, use the page flag:

```
cldkctl dns list --page [page-number]
```

5. The terminal displays a list of DNS zones in a table format, showing information such as ID, domain name, status, and creation date.

<figure><img src="/files/hc681xyBokqAkMQwV4Fu" alt=""><figcaption></figcaption></figure>

| Column     | Description                                           |
| ---------- | ----------------------------------------------------- |
| ID         | Unique identifier of the DNS zone.                    |
| Name       | Domain name of the DNS zone.                          |
| Status     | Indicates whether the DNS zone is active or inactive. |
| Created At | Timestamp showing when the DNS zone was created.      |

## Flags

{% hint style="info" %}
This command supports [global flags](/guidance-for-individual/cloudeka-api-list/global-flags.md). Refer to the Global Flags section for details.
{% endhint %}

| Flag               | Description                                        |
| ------------------ | -------------------------------------------------- |
| -h, --help         | Help for dns list command.                         |
| -l, --limit string | Specify number of results per page (default "10"). |
| -n, --name string  | Filter by DNS zone name.                           |
| -p, --page string  | Specify page number (default "1")                  |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/guidance-for-individual/cloudeka-api-list/command-reference/cldkctl-dns/list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
