Skip to content

Instantly share code, notes, and snippets.

@mikolajprzybysz
Last active October 26, 2019 23:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikolajprzybysz/a3978558101a54a1afa5b0905722bd9d to your computer and use it in GitHub Desktop.
Save mikolajprzybysz/a3978558101a54a1afa5b0905722bd9d to your computer and use it in GitHub Desktop.
How to add DNS records in Google Cloud DNS Zone with google cloud sdk
gcloud dns record-sets transaction start --zone=samplewebsite
# Transaction started [transaction.yaml].
gcloud dns record-sets transaction add --zone=samplewebsite --name="samplewebsite.pl" --ttl=21600 --type TXT "google-site-verification=H6H-AdAqZBMUwopsm5T89oEALZdU5z751rLBd-j3jhM"
# Record addition appended to transaction at [transaction.yaml].
gcloud dns record-sets transaction execute --zone=samplewebsite
# Executed transaction [transaction.yaml] for managed-zone [samplewebsite].
# Created [https://dns.googleapis.com/dns/v1/projects/staticwebsitehosting/managedZones/samplewebsite/changes/1].
# ID START_TIME STATUS
# 1 2019-10-26T22:53:17.658Z pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment