1#!/bin/sh 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 http://mozilla.org/MPL/2.0/. 8# 9# See the COPYRIGHT file distributed with this work for additional 10# information regarding copyright ownership. 11 12SYSTEMTESTTOP=.. 13. $SYSTEMTESTTOP/conf.sh 14 15$SHELL ../genzone.sh 1 6 7 >ns1/slave.db 16$SHELL ../genzone.sh 1 6 7 >ns1/edns-expire.db 17$SHELL ../genzone.sh 2 3 >ns2/example.db 18$SHELL ../genzone.sh 2 3 >ns2/tsigzone.db 19$SHELL ../genzone.sh 6 3 >ns6/master.db 20$SHELL ../genzone.sh 7 >ns7/master2.db 21 22cp -f ns4/root.db.in ns4/root.db 23$PERL -e 'for ($i=0;$i<10000;$i++){ printf("x%u 0 in a 10.53.0.1\n", $i);}' >> ns4/root.db 24 25copy_setports ns1/named.conf.in ns1/named.conf 26copy_setports ns2/named.conf.in ns2/named.conf 27copy_setports ns3/named.conf.in ns3/named.conf 28copy_setports ns6/named.conf.in ns6/named.conf 29copy_setports ns7/named.conf.in ns7/named.conf 30copy_setports ns8/named.conf.in ns8/named.conf 31 32copy_setports ns4/named.conf.base ns4/named.conf 33 34cp ns2/slave.db.in ns2/slave.db 35touch -t 200101010000 ns2/slave.db 36 37cp ns2/mapped.db.in ns2/mapped.db 38 39$PERL -e 'for ($i=0;$i<4096;$i++){ printf("name%u 259200 A 1.2.3.4\nname%u 259200 TXT \"Hello World %u\"\n", $i, $i, $i);}' > ns8/small.db 40$PERL -e 'printf("large IN TYPE45234 \\# 48000 "); for ($i=0;$i<16*3000;$i++) { printf("%02x", $i % 256); } printf("\n");' > ns8/large.db 41 42cp -f ns1/ixfr-too-big.db.in ns1/ixfr-too-big.db 43