depot/third_party/tvl/users/tazjin/dns/import
Default email a291c8690a Project import generated by Copybara.
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
2022-05-19 16:39:52 +02:00

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}"