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 https://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 15# 16# jnl and database files MUST be removed before we start 17# 18$SHELL clean.sh 19 20copy_setports ns1/named.conf.in ns1/named.conf 21copy_setports ns2/named.conf.in ns2/named.conf 22copy_setports ns3/named.conf.in ns3/named.conf 23copy_setports ns5/named.conf.in ns5/named.conf 24copy_setports ns6/named.conf.in ns6/named.conf 25copy_setports ns7/named.conf.in ns7/named.conf 26copy_setports ns8/named.conf.in ns8/named.conf 27copy_setports ns9/named.conf.in ns9/named.conf 28copy_setports ns10/named.conf.in ns10/named.conf 29 30copy_setports verylarge.in verylarge 31 32cp -f ns1/example1.db ns1/example.db 33sed 's/example.nil/other.nil/g' ns1/example1.db > ns1/other.db 34sed 's/example.nil/unixtime.nil/g' ns1/example1.db > ns1/unixtime.db 35sed 's/example.nil/yyyymmddvv.nil/g' ns1/example1.db > ns1/yyyymmddvv.db 36sed 's/example.nil/keytests.nil/g' ns1/example1.db > ns1/keytests.db 37cp -f ns3/example.db.in ns3/example.db 38cp -f ns3/too-big.test.db.in ns3/too-big.test.db 39 40# update_test.pl has its own zone file because it 41# requires a specific NS record set. 42cat <<\EOF >ns1/update.db 43$ORIGIN . 44$TTL 300 ; 5 minutes 45update.nil IN SOA ns1.example.nil. hostmaster.example.nil. ( 46 1 ; serial 47 2000 ; refresh (2000 seconds) 48 2000 ; retry (2000 seconds) 49 1814400 ; expire (3 weeks) 50 3600 ; minimum (1 hour) 51 ) 52update.nil. NS ns1.update.nil. 53ns1.update.nil. A 10.53.0.2 54ns2.update.nil. AAAA ::1 55EOF 56 57$DDNSCONFGEN -q -z example.nil > ns1/ddns.key 58 59$DDNSCONFGEN -q -a hmac-md5 -k md5-key -z keytests.nil > ns1/md5.key 60$DDNSCONFGEN -q -a hmac-sha1 -k sha1-key -z keytests.nil > ns1/sha1.key 61$DDNSCONFGEN -q -a hmac-sha224 -k sha224-key -z keytests.nil > ns1/sha224.key 62$DDNSCONFGEN -q -a hmac-sha256 -k sha256-key -z keytests.nil > ns1/sha256.key 63$DDNSCONFGEN -q -a hmac-sha384 -k sha384-key -z keytests.nil > ns1/sha384.key 64$DDNSCONFGEN -q -a hmac-sha512 -k sha512-key -z keytests.nil > ns1/sha512.key 65 66(cd ns3; $SHELL -e sign.sh) 67 68cp -f ns1/many.test.db.in ns1/many.test.db 69 70cp ns1/sample.db.in ns1/sample.db 71cp ns2/sample.db.in ns2/sample.db 72 73cp -f ns1/maxjournal.db.in ns1/maxjournal.db 74 75cp -f ns5/local.db.in ns5/local.db 76cp -f ns6/in-addr.db.in ns6/in-addr.db 77cp -f ns7/in-addr.db.in ns7/in-addr.db 78cp -f ns7/example.com.db.in ns7/example.com.db 79cp -f ns8/in-addr.db.in ns8/in-addr.db 80cp -f ns8/example.com.db.in ns8/example.com.db 81cp -f ns9/in-addr.db.in ns9/in-addr.db 82cp -f ns9/example.com.db.in ns9/example.com.db 83cp -f ns9/example.com.db.in ns9/denyname.example.db 84cp -f ns10/in-addr.db.in ns10/in-addr.db 85cp -f ns10/example.com.db.in ns10/example.com.db 86