[dns] Add DNS setup to git

This commit is contained in:
Vincent Ambo 2016-05-27 00:38:17 +02:00
parent b85e5e7aca
commit cfe9387af1
2 changed files with 40 additions and 0 deletions

11
dns/import Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -ue
# Imports a zone file into a Google Cloud DNS zone of the same name
readonly ZONE="${1}"
gcloud dns record-sets import "${ZONE}" \
--project composite-watch-759 \
--zone-file-format \
--delete-all-existing \
--zone "${ZONE}"