Home | History | Annotate | Line # | Download | only in masterformat
      1  1.1.1.2  christos #!/bin/sh
      2  1.1.1.5  christos 
      3      1.1  christos # Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      4      1.1  christos #
      5  1.1.1.5  christos # SPDX-License-Identifier: MPL-2.0
      6  1.1.1.5  christos #
      7      1.1  christos # This Source Code Form is subject to the terms of the Mozilla Public
      8  1.1.1.5  christos # License, v. 2.0.  If a copy of the MPL was not distributed with this
      9  1.1.1.4  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.2  christos # shellcheck source=conf.sh
     15  1.1.1.6  christos . ../conf.sh
     16      1.1  christos 
     17      1.1  christos cp ns1/example.db ns2/
     18      1.1  christos cp ns2/formerly-text.db.in ns2/formerly-text.db
     19  1.1.1.7  christos cp ns1/empty.db.in ns1/under-limit.db
     20  1.1.1.7  christos 
     21  1.1.1.7  christos # counts are set with respect to these limits in named.conf:
     22  1.1.1.7  christos #	max-records-per-type 2050;
     23  1.1.1.7  christos #	max-types-per-name 500;
     24  1.1.1.7  christos awk 'END {
     25  1.1.1.7  christos 	 for (i = 0; i < 500; i++ ) { print "500-txt TXT", i; }
     26  1.1.1.7  christos 	 for (i = 0; i < 1000; i++ ) { print "1000-txt TXT", i; }
     27  1.1.1.7  christos 	 for (i = 0; i < 2000; i++ ) { print "2000-txt TXT", i; }
     28  1.1.1.7  christos }' </dev/null >>ns1/under-limit.db
     29  1.1.1.7  christos cp ns1/under-limit.db ns1/under-limit-kasp.db
     30  1.1.1.7  christos 
     31  1.1.1.8  christos cp ns1/empty.db.in ns1/below-limit.db
     32      1.1  christos awk 'END {
     33  1.1.1.7  christos 	 for (i = 0; i < 500; i++ ) { print "500-txt TXT", i; }
     34  1.1.1.7  christos 	 for (i = 0; i < 1000; i++ ) { print "1000-txt TXT", i; }
     35  1.1.1.7  christos 	 for (i = 0; i < 2000; i++ ) { print "2000-txt TXT", i; }
     36  1.1.1.7  christos 	 for (i = 0; i < 2050; i++ ) { print "2050-txt TXT", i; }
     37  1.1.1.8  christos }' </dev/null >>ns1/below-limit.db
     38  1.1.1.8  christos cp ns1/below-limit.db ns1/below-limit-kasp.db
     39  1.1.1.7  christos 
     40  1.1.1.8  christos cp ns1/empty.db.in ns1/above-limit.db
     41  1.1.1.7  christos awk 'END {
     42  1.1.1.7  christos 	 for (i = 0; i < 500; i++ ) { print "500-txt TXT", i; }
     43  1.1.1.7  christos 	 for (i = 0; i < 1000; i++ ) { print "1000-txt TXT", i; }
     44  1.1.1.7  christos 	 for (i = 0; i < 2000; i++ ) { print "2000-txt TXT", i; }
     45  1.1.1.7  christos 	 for (i = 0; i < 2050; i++ ) { print "2050-txt TXT", i; }
     46  1.1.1.7  christos 	 for (i = 0; i < 2100; i++ ) { print "2100-txt TXT", i; }
     47  1.1.1.8  christos }' </dev/null >>ns1/above-limit.db
     48  1.1.1.7  christos 
     49  1.1.1.7  christos cp ns1/empty.db.in ns1/255types.db
     50  1.1.1.7  christos for ntype in $(seq 65280 65534); do
     51  1.1.1.7  christos   echo "m TYPE${ntype} \# 0"
     52  1.1.1.7  christos done >>ns1/255types.db
     53  1.1.1.7  christos echo "m TXT bunny" >>ns1/255types.db
     54  1.1.1.7  christos (cd ns1 && $SHELL compile.sh)
     55  1.1.1.7  christos (cd ns4 && $SHELL compile.sh)
     56