#!/bin/sh # Copyright (C) Internet Systems Consortium, Inc. ("ISC") # # SPDX-License-Identifier: MPL-2.0 # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, you can obtain one at https://mozilla.org/MPL/2.0/. # # See the COPYRIGHT file distributed with this work for additional # information regarding copyright ownership. usage() { echo "Usage: $0 [-s] []" echo " -s: use the same zone file all zones" exit 1 } if [ "$#" -lt 1 -o "$#" -gt 3 ]; then usage fi single_file="" if [ $1 = "-s" ]; then single_file=yes shift fi nzones=$1 shift nrecords=5 [ "$#" -eq 1 ] && nrecords=$1 . ../system/conf.sh cat <zones/$zonename.db echo "zone $zonename { type primary; file \"zones/$zonename.db\"; };" fi done