# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
-rm -f ns*/named.conf
rm -f */named.memstats
rm -f */named.run */named.run.prev
-rm -f dig.out.*
rm -f ans*/query.log*
+rm -f dig.out.*
+rm -f named.run.*
+rm -f ns*/named.conf
rm -f query*.log
$TTL 2
stale. NS ns2.stale.
ns2.stale. A 10.53.0.2
+
+in-addr.arpa. NS ns5.in-addr.arpa.
+ns5.in-addr.arpa. A 10.53.0.5
--- /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.
+
+$TTL 20
+@ IN SOA wpk.isc.org. a.root.servers.nil. (
+ 2000042100 ; serial
+ 600 ; refresh
+ 600 ; retry
+ 1200 ; expire
+ 2 ; minimum
+ )
+@ NS ns5
+ns5 A 10.53.0.5
querylog yes;
resolver-query-timeout 30000; # 30 seconds
dnssec-validation no;
+ disable-empty-zone 10.in-addr.arpa;
};
key rndc_key {
type hint;
file "../../_common/root.hint";
};
+
+zone "in-addr.arpa" {
+ type primary;
+ file "in-addr.arpa.db";
+};
querylog yes;
resolver-query-timeout 30000; # 30 seconds
dnssec-validation no;
+ disable-empty-zone 10.in-addr.arpa;
};
key rndc_key {
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
+n=$((n + 1))
+echo_i "test that \"success resolving\" is not logged for NXDOMAIN final answer when qname-minimization is in relaxed mode ($n)"
+ret=0
+nextpart ns7/named.run >/dev/null
+$DIG $DIGOPTS 1.0.53.10.in-addr.arpa ptr @10.53.0.7 >dig.out.test$n || ret=1
+nextpart ns7/named.run >named.run.test$n
+grep "status: NXDOMAIN" dig.out.test$n >/dev/null || ret=1
+grep "success resolving" named.run.test$n >/dev/null && ret=1
+if [ $ret != 0 ]; then echo_i "failed"; fi
+status=$((status + ret))
+
echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1