2

I'm new to Google Cloud Platform and want to use Google Cloud DNS.

I've installed google-cloud-sdk, but when I try using the dns subcommand, I get Invalid subcommand: 'dns'

$ gcloud dns managed-zone create --dns_name="example.com." \
  --description="A test zone" examplezonename

How can I use the dns subcommand? Is there a special SDK I need?

JJ Geewax
  • 10,342
  • 1
  • 37
  • 49
zelon
  • 297
  • 2
  • 8

1 Answers1

4

See the Cloud DNS documentation. You need to run:

gcloud components update dns

To be able to use DNS commands.

Jay Lee
  • 13,415
  • 3
  • 28
  • 59