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