a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
12 lines
270 B
Bash
Executable file
12 lines
270 B
Bash
Executable file
#!/bin/sh
|
|
set -ue
|
|
|
|
# Imports a zone file into Google Cloud DNS
|
|
readonly ZONE="${1}"
|
|
readonly FILE="${2}"
|
|
|
|
gcloud dns record-sets import "${FILE}" \
|
|
--project composite-watch-759 \
|
|
--zone-file-format \
|
|
--delete-all-existing \
|
|
--zone "${ZONE}"
|