0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 2011, 2012, 2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt# $Id: setup.sh,v 1.4 2011/09/02 21:15:35 each Exp $
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt echo "Usage: $0 [-s] <number of zones> [<records per zone>]"
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt directory "`pwd`";
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt listen-on { localhost; };
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt listen-on-v6 { localhost; };
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt allow-query { any; };
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt allow-transfer { localhost; };
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt allow-recursion { none; };
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt recursion no;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Huntkey rndc_key {
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt secret "1234abcd8765";
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt algorithm hmac-md5;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt inet 127.0.0.1 port 9953 allow { any; } keys { rndc_key; };
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt channel basic {
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt file "`pwd`/named.log" versions 3 size 100m;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt severity info;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt print-time yes;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt print-severity no;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt print-category no;
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt category default {
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt$PERL makenames.pl $nzones | while read zonename; do
c46ce2d79b4398a3db7c25b50c7ca3b292f0afa8Evan Hunt echo "zone $zonename { type master; file \"smallzone.db\"; };"
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt $PERL mkzonefile.pl $zonename $nrecords > zones/$zonename.db
8a2ab2b9203120c3e2a883a5ee8c0b5d60c1808cEvan Hunt echo "zone $zonename { type master; file \"zones/$zonename.db\"; };"