gcloud dns record-sets transaction add

NAME
gcloud dns record-sets transaction add - append a record-set addition to the transaction
SYNOPSIS
gcloud dns record-sets transaction addRRDATAS[RRDATAS …]--name=NAME--ttl=TTL--type=TYPE--zone=ZONE,-zZONE[--transaction-file=TRANSACTION_FILE; default="transaction.yaml"][GCLOUD_WIDE_FLAG]
DESCRIPTION
This command appends a record-set addition to the transaction.

For a guide detailing how to manage records, see:https://cloud.google.com/dns/records/

EXAMPLES
To add an A record with an IP address of "1.2.3.4", domain name of "my.domain.",and a managed zone "MANAGED_ZONE", run:
gclouddnsrecord-setstransactionadd"1.2.3.4"--name=my.domain.--ttl=1234--type=A--zone=MANAGED_ZONE

To add a TXT record with multiple data values while specifying time to live as14400 seconds, run:

gclouddnsrecord-setstransactionadd"Hello world""Bye world"--name=my.domain.--ttl=14400--type=TXT--zone=MANAGED_ZONE
POSITIONAL ARGUMENTS
RRDATAS [RRDATAS …]
DNS data (Address/CNAME/MX info, etc.) of the record-set to add. This is RDATA;the format of this information varies depending on the type and class of theresource record.
REQUIRED FLAGS
--name=NAME
DNS or domain name of the record-set to add.
--ttl=TTL
TTL (time to live) for the record-set to add.
--type=TYPE
DNS record type of the record-set to add.
--zone=ZONE,-zZONE
Name of the managed zone whose record sets you want to manage.
OPTIONAL FLAGS
--transaction-file=TRANSACTION_FILE; default="transaction.yaml"
Path of the file which contains the transaction.
GCLOUD WIDE FLAGS
These flags are available to all commands:--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.

NOTES
These variants are also available:
gcloudalphadnsrecord-setstransactionadd
gcloudbetadnsrecord-setstransactionadd

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-06-17 UTC.