2018-12-05 05:22:17 -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
|
|
|
#
|
2005-06-19 21:05:33 -04:00
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
2021-06-03 02:37:05 -04:00
|
|
|
#
|
2005-06-19 21:05:33 -04: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
|
|
|
#
|
2005-06-19 21:05:33 -04:00
|
|
|
# See the COPYRIGHT file distributed with this work for additional
|
|
|
|
|
# information regarding copyright ownership.
|
|
|
|
|
|
2018-12-05 05:22:17 -05:00
|
|
|
# shellcheck source=conf.sh
|
2020-07-21 06:12:59 -04:00
|
|
|
. ../conf.sh
|
2014-01-20 19:08:09 -05:00
|
|
|
|
2019-02-28 06:33:07 -05: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
|
|
|
|
|
copy_setports ns3/named.conf.in ns3/named.conf
|
2024-05-31 07:08:38 -04:00
|
|
|
copy_setports ns4/named1.conf.in ns4/named.conf
|
2018-02-20 18:43:27 -05:00
|
|
|
|
2005-06-19 21:05:33 -04:00
|
|
|
cp ns1/example.db ns2/
|
2011-10-26 11:23:37 -04:00
|
|
|
cp ns2/formerly-text.db.in ns2/formerly-text.db
|
2024-05-29 15:03:02 -04:00
|
|
|
cp ns1/empty.db.in ns1/under-limit.db
|
2024-05-29 12:28:58 -04:00
|
|
|
|
|
|
|
|
# counts are set with respect to these limits in named.conf:
|
|
|
|
|
# max-records-per-type 2050;
|
|
|
|
|
# max-types-per-name 500;
|
2012-02-13 18:46:24 -05:00
|
|
|
awk 'END {
|
2024-05-29 12:20:00 -04:00
|
|
|
for (i = 0; i < 500; i++ ) { print "500-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 1000; i++ ) { print "1000-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 2000; i++ ) { print "2000-txt TXT", i; }
|
2024-05-29 12:28:58 -04:00
|
|
|
}' </dev/null >>ns1/under-limit.db
|
2024-05-30 06:26:03 -04:00
|
|
|
cp ns1/under-limit.db ns1/under-limit-kasp.db
|
|
|
|
|
|
2024-05-29 15:03:02 -04:00
|
|
|
cp ns1/empty.db.in ns1/on-limit.db
|
2024-05-23 13:12:40 -04:00
|
|
|
awk 'END {
|
2024-05-29 12:20:00 -04:00
|
|
|
for (i = 0; i < 500; i++ ) { print "500-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 1000; i++ ) { print "1000-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 2000; i++ ) { print "2000-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 2050; i++ ) { print "2050-txt TXT", i; }
|
2024-05-29 12:28:58 -04:00
|
|
|
}' </dev/null >>ns1/on-limit.db
|
2024-05-30 06:26:03 -04:00
|
|
|
cp ns1/on-limit.db ns1/on-limit-kasp.db
|
|
|
|
|
|
2024-05-29 15:03:02 -04:00
|
|
|
cp ns1/empty.db.in ns1/over-limit.db
|
2024-05-23 13:12:40 -04:00
|
|
|
awk 'END {
|
2024-05-29 12:20:00 -04:00
|
|
|
for (i = 0; i < 500; i++ ) { print "500-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 1000; i++ ) { print "1000-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 2000; i++ ) { print "2000-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 2050; i++ ) { print "2050-txt TXT", i; }
|
|
|
|
|
for (i = 0; i < 2100; i++ ) { print "2100-txt TXT", i; }
|
2024-05-29 12:28:58 -04:00
|
|
|
}' </dev/null >>ns1/over-limit.db
|
2024-05-30 06:26:03 -04:00
|
|
|
|
2024-05-29 15:03:02 -04:00
|
|
|
cp ns1/empty.db.in ns1/255types.db
|
2024-05-28 10:13:53 -04:00
|
|
|
for ntype in $(seq 65280 65534); do
|
|
|
|
|
echo "m TYPE${ntype} \# 0"
|
2024-05-29 12:28:58 -04:00
|
|
|
done >>ns1/255types.db
|
|
|
|
|
echo "m TXT bunny" >>ns1/255types.db
|
2024-05-31 07:08:38 -04:00
|
|
|
(cd ns1 && $SHELL compile.sh)
|
|
|
|
|
(cd ns4 && $SHELL compile.sh)
|