1 1.1 christos #!/bin/sh 2 1.1.1.4 christos 3 1.1 christos # Copyright (C) Internet Systems Consortium, Inc. ("ISC") 4 1.1 christos # 5 1.1.1.4 christos # SPDX-License-Identifier: MPL-2.0 6 1.1.1.4 christos # 7 1.1 christos # This Source Code Form is subject to the terms of the Mozilla Public 8 1.1.1.4 christos # License, v. 2.0. If a copy of the MPL was not distributed with this 9 1.1.1.3 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.6 christos . ../conf.sh 15 1.1 christos 16 1.1.1.6 christos $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 >ns1/primary.db 17 1.1.1.6 christos $SHELL ${TOP_SRCDIR}/bin/tests/system/genzone.sh 1 >ns1/duplicate.db 18 1.1 christos cp bigserial.db ns1/ 19 1.1 christos cd ns1 20 1.1.1.3 christos touch primary.db.signed 21 1.1.1.6 christos echo '$INCLUDE "primary.db.signed"' >>primary.db 22 1.1.1.6 christos $KEYGEN -a ${DEFAULT_ALGORITHM} -q primary.example >/dev/null 2>&1 23 1.1.1.6 christos $KEYGEN -a ${DEFAULT_ALGORITHM} -qfk primary.example >/dev/null 2>&1 24 1.1.1.6 christos $SIGNER -SD -o primary.example primary.db >/dev/null \ 25 1.1.1.6 christos 2>signer.err || cat signer.err 26 1.1.1.6 christos echo '$INCLUDE "soa.db"' >reload.db 27 1.1.1.6 christos echo '@ 0 NS .' >>reload.db 28 1.1.1.6 christos echo '@ 0 SOA . . 1 0 0 0 0' >soa.db 29