rm -f ns*/named.run.prev
rm -f ns1/*dom*example.db
rm -f ns2/__catz__*db
+rm -f ns2/catalog-bad6.example.db
rm -f ns2/named.conf.tmp
rm -f ns3/dom13.example.db ns3/dom14.example.db
rm -f ns4/catalog-self.example.db
--- /dev/null
+; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+;
+; SPDX-License-Identifier: MPL-2.0
+;
+; 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/.
+;
+; See the COPYRIGHT file distributed with this work for additional
+; information regarding copyright ownership.
+
+@ 3600 SOA . . 1 86400 3600 86400 3600
+@ 3600 IN NS invalid.
+version IN TXT "1"
+deadbeef.zones IN PTR member.example.
+mykey.masters.deadbeef.zones IN A 192.0.2.1
+; bad key name label too big
+mykey.masters.deadbeef.zones IN TXT "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA.example.com"
/* catalog5 is missing on purpose */
+# Bad TSIG key name
+zone "catalog-bad6.example" {
+ type primary;
+ file "catalog-bad6.example.db";
+ allow-transfer { any; };
+ allow-update { any; };
+ also-notify { 10.53.0.2; };
+ notify explicit;
+};
+
key tsig_key. {
secret "LSAnCU+Z";
algorithm @DEFAULT_HMAC@;
#T1 default-masters { 10.53.0.1; };
#T2 zone "catalog5.example"
#T2 default-masters { 10.53.0.1; };
+ zone "catalog-bad6.example"
+ default-masters { 10.53.0.1; };
};
};
primaries { 10.53.0.1; };
};
+# Bad TSIG key name
+zone "catalog-bad6.example" {
+ type secondary;
+ file "catalog-bad6.example.db";
+ primaries { 10.53.0.1; };
+};
+
# When the following zone configuration is enabled, "dom3.example" should
# already exist as a member of "catalog1.example", and named should be able
# to deal with that situation (see GL #3911). Make sure that this duplicate
primaries { 10.53.0.1; };
};
+# Bad TSIG key name
+zone "catalog-bad6.example" {
+ type secondary;
+ file "catalog-bad6.example.db";
+ primaries { 10.53.0.1; };
+};
+
key tsig_key. {
secret "LSAnCU+Z";
algorithm @DEFAULT_HMAC@;
status=0
n=0
+
+##########################################################################
+
+echo_i "checking that catalog-bad6.example (invalid TSIG key name) is handled ($n)"
+ret=0
+wait_for_message ns2/named.run "catz: unknown record in catalog zone - mykey.masters.deadbeef.zones.catalog-bad6.example IN TXT(label too long) - ignoring" || ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
+nextpart ns2/named.run >/dev/null
+
##########################################################################
echo_i "Testing adding/removing of domain in catalog zone"
n=$((n + 1))