Getting a list of DNS zones
- In the management console
, select the folder contaning DNS zones you want to view. - Go to Cloud DNS.
- You will see the list of DNS zones on the Zones page.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating 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.
-
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.