2012-01-30 22:35:41 -05:00
|
|
|
#!/bin/sh
|
2021-06-03 02:37:05 -04:00
|
|
|
|
2018-02-22 18:10:37 -05:00
|
|
|
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2012-06-28 21:39:47 -04:00
|
|
|
#
|
2012-01-30 22:35:41 -05:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
2021-06-03 02:37:05 -04:00
|
|
|
#
|
2012-01-30 22:35:41 -05:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 03:53:12 -05:00
|
|
|
#
|
2012-01-30 22:35:41 -05:00
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
|
2020-07-21 06:12:59 -04:00
|
|
|
. ../conf.sh
|
2012-01-30 22:35:41 -05:00
|
|
|
|
2014-05-07 01:06:04 -04:00
|
|
|
$SHELL clean.sh
|
|
|
|
|
|
2018-02-20 18:43:27 -05:00
|
|
|
copy_setports ns1/named.conf.in ns1/named.conf
|
|
|
|
|
copy_setports ns2/named.conf.in ns2/named.conf
|
|
|
|
|
|
2020-06-30 16:10:59 -04:00
|
|
|
$SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 >ns1/primary.db
|
2018-08-07 10:46:53 -04:00
|
|
|
$SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 >ns1/duplicate.db
|
2015-06-23 04:27:33 -04:00
|
|
|
cp bigserial.db ns1/
|
2012-01-30 22:35:41 -05:00
|
|
|
cd ns1
|
2020-06-30 16:10:59 -04:00
|
|
|
touch primary.db.signed
|
|
|
|
|
echo '$INCLUDE "primary.db.signed"' >>primary.db
|
2022-07-07 20:59:20 -04:00
|
|
|
$KEYGEN -a ${DEFAULT_ALGORITHM} -q primary.example >/dev/null 2>&1
|
|
|
|
|
$KEYGEN -a ${DEFAULT_ALGORITHM} -qfk primary.example >/dev/null 2>&1
|
2020-06-30 16:10:59 -04:00
|
|
|
$SIGNER -SD -o primary.example primary.db >/dev/null \
|
2016-10-19 11:18:42 -04:00
|
|
|
2>signer.err || cat signer.err
|
2013-12-06 17:44:45 -05:00
|
|
|
echo '$INCLUDE "soa.db"' >reload.db
|
|
|
|
|
echo '@ 0 NS .' >>reload.db
|
|
|
|
|
echo '@ 0 SOA . . 1 0 0 0 0' >soa.db
|