1#!/bin/sh
2#
3# Copyright (C) 2004, 2007, 2011-2014  Internet Systems Consortium, Inc. ("ISC")
4# Copyright (C) 2001  Internet Software Consortium.
5#
6# Permission to use, copy, modify, and/or distribute this software for any
7# purpose with or without fee is hereby granted, provided that the above
8# copyright notice and this permission notice appear in all copies.
9#
10# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12# AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16# PERFORMANCE OF THIS SOFTWARE.
17
18SYSTEMTESTTOP=..
19. $SYSTEMTESTTOP/conf.sh
20
21rm -f ns1/*.db ns1/*.jnl ns3/*.jnl ns4/*.db ns4/*.jnl
22
23cat <<EOF >ns1/named.conf
24options {
25	query-source address 10.53.0.1;
26	notify-source 10.53.0.1;
27	transfer-source 10.53.0.1;
28	port 5300;
29	pid-file "named.pid";
30	listen-on { 10.53.0.1; };
31	listen-on-v6 { none; };
32	recursion no;
33	notify yes;
34};
35
36key rndc_key {
37	secret "1234abcd8765";
38	algorithm hmac-sha256;
39};
40
41controls {
42	inet 10.53.0.1 port 9953 allow { any; } keys { rndc_key; };
43};
44EOF
45
46# Setup initial db files for ns3
47cp ns3/mytest0.db ns3/mytest.db
48cp ns3/subtest0.db ns3/subtest.db
49$SHELL ../genzone.sh 3 > ns3/large.db
50awk 'END { for (i = 0; i < 10000; i++) printf("record%d 10 IN TXT this is record %d\n", i, i) }' < /dev/null >> ns3/large.db
51