Skip to content

Instantly share code, notes, and snippets.

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/3fbf4832d2043823c04d7dc37ccfd3b5 to your computer and use it in GitHub Desktop.
Save mikolajprzybysz/3fbf4832d2043823c04d7dc37ccfd3b5 to your computer and use it in GitHub Desktop.
How to add CNAME record to redirect www subdomain to google storage
gcloud dns record-sets transaction start --zone=samplewebsite
gcloud dns record-sets transaction add -zone=samplewebsite --name="www.samplewebsite.pl" --ttl=300 --type=CNAME "c.storage.googleapis.com."
gcloud dns record-sets transaction execute --zone samplewebsite
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment