1#!/bin/sh -e 2# 3# Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4# 5# This Source Code Form is subject to the terms of the Mozilla Public 6# License, v. 2.0. If a copy of the MPL was not distributed with this 7# file, you can obtain one at https://mozilla.org/MPL/2.0/. 8# 9# See the COPYRIGHT file distributed with this work for additional 10# information regarding copyright ownership. 11 12# shellcheck source=conf.sh 13. ../../conf.sh 14 15echo_i "ns3/setup.sh" 16 17setup() { 18 zone="$1" 19 echo_i "setting up zone: $zone" 20 zonefile="${zone}.db" 21 infile="${zone}.db.infile" 22 cp template.db.in "$zonefile" 23} 24 25for zn in nsec-to-nsec3 nsec3 nsec3-other nsec3-change nsec3-to-nsec \ 26 nsec3-to-optout nsec3-from-optout 27do 28 setup "${zn}.kasp" 29done 30