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