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