xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/rpzrecurse/ns2/named.clientip2.conf (revision dd75ac5b443e967e26b4d18cc8cd5eb98512bfbf)
1/*
2 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3 *
4 * SPDX-License-Identifier: MPL-2.0
5 *
6 * This Source Code Form is subject to the terms of the Mozilla Public
7 * License, v. 2.0.  If a copy of the MPL was not distributed with this
8 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9 *
10 * See the COPYRIGHT file distributed with this work for additional
11 * information regarding copyright ownership.
12 */
13
14# common configuration
15include "named.conf.header";
16
17view "recursive" {
18    zone "." {
19	type hint;
20	file "root.hint";
21    };
22
23    servfail-ttl 0;
24
25    # policy configuration to be tested
26    response-policy {
27	zone "clientip21";
28    } qname-wait-recurse no
29	nsdname-enable yes
30	nsip-enable yes;
31
32    # policy zones to be tested
33    zone "clientip21" { type master; file "db.clientip21"; };
34
35    recursion yes;
36    dnssec-validation yes;
37};
38