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 https://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 15cp -f ns1/example1.db ns1/example.db 16cp -f ns3/nomaster.db ns3/nomaster1.db 17 18copy_setports ns1/named.conf.in ns1/named.conf 19copy_setports ns2/named.conf.in ns2/named.conf 20copy_setports ns3/named.conf.in ns3/named.conf 21 22if ../feature-test --enable-dnstap 23then 24 cat <<'EOF' > ns3/dnstap.conf 25 dnstap-identity "ns3"; 26 dnstap-version "xxx"; 27 dnstap-output file "dnstap.out"; 28 dnstap { all; }; 29EOF 30else 31 echo "/* DNSTAP NOT ENABLED */" >ns3/dnstap.conf 32fi 33 34 35# 36# SIG(0) required cryptographic support which may not be configured. 37# 38keyname=`$KEYGEN -q -n HOST -a RSASHA1 -b 1024 -T KEY sig0.example2 2>keyname.err` 39if test -n "$keyname" 40then 41 cat ns1/example1.db $keyname.key > ns1/example2.db 42 echo $keyname > keyname 43else 44 cat ns1/example1.db > ns1/example2.db 45fi 46cat_i < keyname.err 47