about summary refs log tree commit diff
path: root/users/tazjin/dns/import
#!/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}"