[dns] Add DNS setup to git
This commit is contained in:
parent
b85e5e7aca
commit
cfe9387af1
2 changed files with 40 additions and 0 deletions
11
dns/import
Executable file
11
dns/import
Executable 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue