gcloud dns policies update POLICY [--alternative-name-servers=[NAME_SERVERS,…]] [--description=DESCRIPTION] [--[no-]enable-dns64-all-queries] [--enable-inbound-forwarding] [--enable-logging] [--networks=[NETWORKS,…]] [--private-alternative-name-servers=[NAME_SERVERS,…]] [GCLOUD_WIDE_FLAG …]
gcloud dns policies update mypolicy --description="Hello, world!"
To set the project attribute:
policy on the command line with a fully
specified name;
core/project.
POLICYpolicy attribute:
policy on the command line.
--alternative-name-servers=[NAME_SERVERS,…]--description=DESCRIPTION--[no-]enable-dns64-all-queries--enable-dns64-all-queries to enable
and --no-enable-dns64-all-queries to disable.
--enable-inbound-forwarding--enable-logging--networks=[NETWORKS,…]--private-alternative-name-servers=[NAME_SERVERS,…]--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
gcloud alpha dns policies updategcloud beta dns policies update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.