Looking for assistance with using gcloud to add a dns record to Google Cloud DNS. I'm able to add, modify, and remove records fine. The issue becomes when I try to use gcloud to add a DKIM TXT record that's larger than 255 characters. No matter what combo/syntax i use it either stores the first 255 characters or multiple txt values instead of a single "wrapped" txt record. This is the syntax i use:
gcloud dns record-sets create <dns-record> --zone=<dns-zone> --ttl 3600 --type TXT --rrdatas <RRDATA>
I need to know what format i need to put the RRDATA in for it to be treated as "one" TXT record with the values "wrapped" if that makes sense.
Any suggestions would be welcome. Thanks.
Hi @rickwills3 ,
The '--rrdatas' flag should be followed by the actual data you want to set for the record. Use the command below instead :
gcloud dns record-sets create <dns-record> --zone=<dns-zone> --ttl 3600 --type TXT --rrdatas "<RRDATA>"
You may refer to this documentation about ResourceRecordSets for more information.
I'm able to get it working using gcloud dns record-sets create dkim_record --zone=DNSzone -ttl 3600 --type TXT --rrdatas '"value1a" "value1b"' (each value wrapped in doublequotes, with all values wrapped in single quotes and it works as I need to to. But the catch is it only seems to work from Linux and not windows. I'm trying to add 200 records programattically I take the record that works in the linux console and copy it exactly and run it from CMD in windows and it errors out with invalid data for rrdatas