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