about summary refs log tree commit diff
path: root/users/tazjin/dns/import
blob: 8ea1d694c9a13952569da3132a730ec488de54b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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}"