The
gcloud dns
command is available in all new
Google Cloud SDK
installations. If you
had Cloud SDK installed previously, run
gcloud components update
dns
to add the
gcloud dns
command. For information on
other
gcloud
commands, see the
gcloud tool guide
.
Commands
- gcloud dns changes get
- gcloud dns changes list
- gcloud dns managed-zone create
- gcloud dns managed-zone delete
- gcloud dns managed-zone get
- gcloud dns managed-zone list
- gcloud dns project-info get
- gcloud dns records edit
- gcloud dns records list
gcloud dns changes get
Get the details of a specific change to Cloud DNS resource record sets.
gcloud [global flags] dns changes get CHANGEFlags:
- global flags
- See global flags
- CHANGE
- The ID of the specific change to lookup.
gcloud dns changes list
List Cloud DNS resource record set changes.
gcloud [global flags] dns changes list [optional flags]Flags:
- global flags
- See global flags
-
--max_results MAX_RESULTS
- If greater than zero, limit the number of changes returned to <max_results>.Default: 0
-
--sort_order SORT_ORDER
- Sort order for listing. Valid values are [ascending, descending]. Default: "descending"
gcloud dns managed-zone create
Create a new Cloud DNS managed zone.
gcloud [global flags] dns managed-zone create --description DESCRIPTION --dns_name DNS_NAME ZONEFlags:
- global flags
- See global flags
-
--description DESCRIPTION
- An optional description of this zone.
-
--dns_name DNS_NAME
-
A domain name for this zone, for example
foo.bar.com.
.
- ZONE
- The name of the managed zone.
gcloud dns managed-zone delete
Delete a Cloud DNS managed zone.
gcloud [global flags] dns managed-zone delete [optional flags] ZONEFlags:
- global flags
- See global flags
-
--delete-zone-contents DELETE_ZONE_CONTENTS
- If true, delete the contents of the zone first.
- ZONE
- The name of the managed zone.
gcloud dns managed-zone get
Get the data for a Cloud DNS managed zone.
gcloud [global flags] dns managed-zone get ZONEFlags:
- global flags
- See global flags
- ZONE
- The name of the managed zone.
gcloud dns managed-zone list
List Cloud DNS managed zones.
gcloud [global flags] dns managed-zone list [optional flags]Flags:
- global flags
- See global flags
-
--max_results MAX_RESULTS
- If greater than zero, limit the number of changes returned to <max_results>.Default: 0
gcloud dns project-info get
Get Cloud DNS information for a project. Returns usage and quota data.
gcloud [global flags] dns project-info get
- global flags
- See global flags
gcloud dns records edit
Edit Cloud DNS resource record sets. See the supported record types for examples on how to format the various types of records or see for an in-depth example of using the command .
gcloud [global flags] dns records edit
- global flags
- See global flags
gcloud dns records list
List Cloud DNS resource record sets.
gcloud [global flags] dns records list
- global flags
- See global flags
Global flags
-
--project project_name
- Provide when you want to switch from your default project to run the command against a different project.
-
--quiet
,-q
- Disables all interactive prompts.
-
--user-output-enabled boolean
-
Control whether user intended output is printed to the console.
true
orfalse
. -
--verbosity level
-
Override the default verbosity for this command. This must be a standard logging verbosity level:
-
debug
-
info
-
warning
(Default) -
error
-
critical
-
none
-