xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/views/ns2/named2.conf.in (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
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
14options {
15	query-source address 10.53.0.2;
16	notify-source 10.53.0.2;
17	transfer-source 10.53.0.2;
18	port @PORT@;
19	pid-file "named.pid";
20	listen-on { 10.53.0.2; 10.53.0.4; };
21	listen-on-v6 { none; };
22	recursion yes;
23	dnssec-validation no;
24	notify yes;
25};
26
27key rndc_key {
28	secret "1234abcd8765";
29	algorithm @DEFAULT_HMAC@;
30};
31
32controls {
33	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
34};
35
36view "internal" {
37	match-clients { 10.53.0.2;
38			10.53.0.3; };
39
40	zone "." {
41		type hint;
42		file "../../_common/root.hint";
43	};
44
45	zone "example" {
46		type primary;
47		file "internal.db";
48		allow-update { any; };
49	};
50
51	zone "clone" {
52		type primary;
53		file "clone.db";
54		allow-update { any; };
55	};
56
57	zone "1.10.in-addr.arpa" {
58		type primary;
59		file "1.10.in-addr.arpa.db";
60	};
61
62	zone "inline" {
63		type primary;
64		file "internal/inline.db";
65		key-directory "internal";
66		auto-dnssec maintain;
67		inline-signing yes;
68		dnssec-dnskey-kskonly no;
69	};
70};
71
72view "external" {
73	match-clients { any; };
74
75	zone "." {
76		type hint;
77		file "../../_common/root.hint";
78	};
79
80	zone "example" {
81		type primary;
82		file "example.db";
83	};
84
85	zone "clone" {
86		in-view internal;
87		forward only;
88		forwarders { 10.53.0.5; };
89	};
90
91	zone "1.10.in-addr.arpa" {
92		in-view internal;
93	};
94
95	zone "inline" {
96		type primary;
97		file "external/inline.db";
98		key-directory "external";
99		auto-dnssec maintain;
100		inline-signing yes;
101		dnssec-dnskey-kskonly no;
102	};
103};
104