Getting a list of DNS zones
Written by
Updated at October 1, 2024
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 command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder 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.