1 #!/bin/sh 2 3 # Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4 # 5 # SPDX-License-Identifier: MPL-2.0 6 # 7 # This Source Code Form is subject to the terms of the Mozilla Public 8 # License, v. 2.0. If a copy of the MPL was not distributed with this 9 # file, you can obtain one at https://mozilla.org/MPL/2.0/. 10 # 11 # See the COPYRIGHT file distributed with this work for additional 12 # information regarding copyright ownership. 13 14 . ../conf.sh 15 16 cp -f ns1/example1.db ns1/example.db 17 cp -f ns1/example3.db.in ns1/example3.db 18 cp -f ns3/noprimary.db ns3/noprimary1.db 19 20 if $FEATURETEST --enable-dnstap; then 21 cat <<'EOF' >ns3/dnstap.conf 22 dnstap-identity "ns3"; 23 dnstap-version "xxx"; 24 dnstap-output file "dnstap.out"; 25 dnstap { all; }; 26 EOF 27 else 28 echo "/* DNSTAP NOT ENABLED */" >ns3/dnstap.conf 29 fi 30 31 # 32 # SIG(0) requires cryptographic support which may not be configured. 33 # 34 keyname=$($KEYGEN -q -n HOST -a ${DEFAULT_ALGORITHM} -T KEY sig0.example2 2>keyname.err) 35 if test -n "$keyname"; then 36 cat ns1/example1.db $keyname.key >ns1/example2.db 37 echo $keyname >keyname 38 else 39 cat ns1/example1.db >ns1/example2.db 40 fi 41 cat_i <keyname.err 42 43 cat ns1/example1.db >ns1/example2-toomanykeys.db 44 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17; do 45 keyname=$($KEYGEN -q -n HOST -a ${DEFAULT_ALGORITHM} -T KEY sig0.example2-toomanykeys 2>/dev/null) 46 if test -n "$keyname"; then 47 cat $keyname.key >>ns1/example2-toomanykeys.db 48 echo $keyname >keyname$i 49 fi 50 done 51