Skip to content

Instantly share code, notes, and snippets.

@jwaldrip
Last active February 22, 2017 20:34
Show Gist options
  • Save jwaldrip/85397373f18bca6f160a3680db9ba29b to your computer and use it in GitHub Desktop.
Save jwaldrip/85397373f18bca6f160a3680db9ba29b to your computer and use it in GitHub Desktop.
cli53 export commercialtribe.com \
| grep --invert-match -E "AWS|NS|SOA" \
| sed -E "s/(MX|CNAME)(.+)/\1\2./" \
| gcloud dns record-sets import -z commercialtribe-com --delete-all-existing --zone-file-format /dev/stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment