Getting a list of DNS zones
Written by
Updated at June 9, 2025
Management console
CLI
API
- In the management console
, select the folder contaning DNS zones you want to view. - Select Cloud DNS.
- You will see the list of DNS zones on the Zones page.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
-
See the description of the CLI command for getting a list of DNS zones:
yc dns zone list --help -
To get a list of DNS zones, run this command:
yc dns zone listResult:
+----------------------+------------+---------+------------------------------+-------------+ | ID | NAME | ZONE | VISIBILITY | DESCRIPTION | +----------------------+------------+---------+------------------------------+-------------+ | dns5djfi2h68******** | test-zone. | staging | PRIVATE enpncp31fh3n******** | | +----------------------+------------+---------+------------------------------+-------------+
To get a list of DNS zones, use the list REST API method for the DnsZone resource or the DnsZoneService/List gRPC API call.