Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



gcloud DNS Commands

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

  1. gcloud dns changes get
  2. gcloud dns changes list
  3. gcloud dns managed-zone create
  4. gcloud dns managed-zone delete
  5. gcloud dns managed-zone get
  6. gcloud dns managed-zone list
  7. gcloud dns project-info get
  8. gcloud dns records edit
  9. 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 CHANGE
Flags:
global flags
See global flags
Arguments:
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 ZONE
Flags:
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. .
Arguments:
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] ZONE
Flags:
global flags
See global flags
--delete-zone-contents DELETE_ZONE_CONTENTS
If true, delete the contents of the zone first.
Arguments:
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 ZONE
Flags:
global flags
See global flags
Arguments:
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 or false .
--verbosity level
Override the default verbosity for this command. This must be a standard logging verbosity level:
  • debug
  • info
  • warning (Default)
  • error
  • critical
  • none

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.