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 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 22# 23# SIG(0) required cryptographic support which may not be configured. 24# 25keyname=`$KEYGEN -q -n HOST -a RSASHA1 -b 1024 -T KEY sig0.example2 2>/dev/null | $D2U` 26if test -n "$keyname" 27then 28 cat ns1/example1.db $keyname.key > ns1/example2.db 29 echo $keyname > keyname 30else 31 cat ns1/example1.db > ns1/example2.db 32fi 33