Getting a list of DNS zones
Written by
Updated at April 24, 2025
Management console
CLI
API
- In the management console
, select the folder where you want to view a list of DNS zones. - Select Cloud DNS.
- The Zones page will show the list of DNS zones.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. 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 the --folder-name
or --folder-id
parameter.
-
View the description of the CLI command to get a list of DNS zones:
yc dns zone list --help
-
To get a list of DNS zones, run this command:
yc dns zone list
Result:
+----------------------+------------+---------+------------------------------+-------------+ | 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.