[Yandex Cloud documentation](../../index.md) > [Yandex Cloud DNS](../index.md) > [Step-by-step guides](index.md) > Getting information about a DNS zone > Getting a list of DNS zones

# Getting a list of DNS zones

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder contaning [DNS zones](../concepts/dns-zone.md) you want to view.
  1. Navigate to **Cloud DNS**.
  1. You will see the list of DNS zones on the **Zones** page.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. See the description of the CLI command for getting a list of [DNS zones](../concepts/dns-zone.md):

     ```bash
      yc dns zone list --help
      ```

  1. To get a list of DNS zones, run this command:

      ```bash
      yc dns zone list
      ```

      Result:

      ```text
      +----------------------+------------+---------+------------------------------+-------------+
      |          ID          |    NAME    |  ZONE   |          VISIBILITY          | DESCRIPTION |
      +----------------------+------------+---------+------------------------------+-------------+
      | dns5djfi2h68******** | test-zone. | staging | PRIVATE enpncp31fh3n******** |             |
      +----------------------+------------+---------+------------------------------+-------------+
      ```

- API {#api}

  To get a list of [DNS zones](../concepts/dns-zone.md), use the [list](../api-ref/DnsZone/list.md) REST API method for the [DnsZone](../api-ref/DnsZone/index.md) resource or the [DnsZoneService/List](../api-ref/grpc/DnsZone/list.md) gRPC API call.

{% endlist %}