--- /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 A 10.53.0.1
notify explicit;
};
+ # Type A "version" property
+ zone "catalog-bad4.example" {
+ type primary;
+ file "catalog-bad4.example.db";
+ allow-transfer { any; };
+ allow-update { any; };
+ also-notify { 10.53.0.2; };
+ notify explicit;
+ };
};
view "ch" ch {
zone "catalog-bad3.example"
default-masters { 10.53.0.1; }
in-memory yes;
+ zone "catalog-bad4.example"
+ default-masters { 10.53.0.1; }
+ in-memory yes;
};
# A faulty dlz configuration to check if named and catz survive a certain class
primaries { 10.53.0.1; };
};
+ # No "version" property
zone "catalog-bad1.example" {
type secondary;
file "catalog-bad1.example.db";
primaries { 10.53.0.1; };
};
+ # Unsupported "version" property
zone "catalog-bad2.example" {
type secondary;
file "catalog-bad2.example.db";
primaries { 10.53.0.1; };
};
+ # Two RRs in TXT RRset for the "version" property
zone "catalog-bad3.example" {
type secondary;
file "catalog-bad3.example.db";
primaries { 10.53.0.1; };
};
+ # Type A "version" property
+ zone "catalog-bad4.example" {
+ type secondary;
+ file "catalog-bad4.example.db";
+ primaries { 10.53.0.1; };
+ };
+
};
view "ch" ch {
in-memory yes;
};
+ # Non-IN class catalog zone
zone "catalog-bad5.example" ch {
type secondary;
file "catalog-bad5.example.db";
primaries { 10.53.0.1; };
};
+ # No "version" property
zone "catalog-bad1.example" {
type secondary;
file "catalog-bad1.example.db";
primaries { 10.53.0.1; };
};
+ # Unsupported "version" property
zone "catalog-bad2.example" {
type secondary;
file "catalog-bad2.example.db";
primaries { 10.53.0.1; };
};
+ # Two RRs in TXT RRset for the "version" property
zone "catalog-bad3.example" {
type secondary;
file "catalog-bad3.example.db";
primaries { 10.53.0.1; };
};
+ # Type A "version" property
+ zone "catalog-bad4.example" {
+ type secondary;
+ file "catalog-bad4.example.db";
+ primaries { 10.53.0.1; };
+ };
+
};
view "ch" ch {
- # removed catalog-zone option, otherwise this is
+ # Removed catalog-zone option, otherwise this is
# identical to named1.conf.in
+ # Non-IN class catalog zone
zone "catalog-bad5.example" ch {
type secondary;
file "catalog-bad5.example.db";
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status+ret))
+n=$((n+1))
+echo_i "checking that catalog-bad4.example (with only spurious type A version record) has failed to load ($n)"
+ret=0
+wait_for_message ns2/named.run "catz: invalid record in catalog zone - version.catalog-bad4.example IN A (failure) - ignoring" &&
+wait_for_message ns2/named.run "catz: zone 'catalog-bad4.example' version is not set" &&
+wait_for_message ns2/named.run "catz: new catalog zone 'catalog-bad4.example' is broken and will not be processed" || ret=1
+if [ $ret -ne 0 ]; then echo_i "failed"; fi
+status=$((status+ret))
+
n=$((n+1))
echo_i "checking that catalog-bad5.example (non-IN class) has failed to load ($n)"
ret=0