gcloud dns managed-zones - manage your Cloud DNS managed-zones
gcloud dns managed-zones COMMAND [GCLOUD_WIDE_FLAG ...]
Manage your Cloud DNS managed-zones. See Managing Zones https://cloud.google.com/dns/zones/ for details.
To create a managed-zone, run:
$ gcloud dns managed-zones create my-zone --description="My Zone" \ --dns-name="my.zone.com."
To delete a managed-zone, run:
$ gcloud dns managed-zones delete my-zone
To view the details of a managed-zone, run:
$ gcloud dns managed-zones describe my-zone
To see the list of all managed-zones, run:
$ gcloud dns managed-zones list
These flags are available to all commands: --help.
Run $ gcloud help for details.
COMMAND is one of the following:
- create
Create a Cloud DNS managed-zone.
- delete
Delete an empty Cloud DNS managed-zone.
- describe
View the details of a Cloud DNS managed-zone.
- get-iam-policy
Get the IAM policy for a Cloud DNS managed-zone.
- list
View the list of all your managed-zones.
- set-iam-policy
Set the IAM policy for a Cloud DNS managed-zone.
- update
Update an existing Cloud DNS managed-zone.
These variants are also available:
$ gcloud alpha dns managed-zones
$ gcloud beta dns managed-zones