xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/views/ns2/named2.conf.in (revision 6db267571823ee3b0a1d61478df085a087f2e990)
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	notify yes;
24};
25
26key rndc_key {
27	secret "1234abcd8765";
28	algorithm hmac-sha256;
29};
30
31controls {
32	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
33};
34
35view "internal" {
36	match-clients { 10.53.0.2;
37			10.53.0.3; };
38
39	zone "." {
40		type hint;
41		file "../../common/root.hint";
42	};
43
44	zone "example" {
45		type primary;
46		file "internal.db";
47		allow-update { any; };
48	};
49
50	zone "clone" {
51		type primary;
52		file "clone.db";
53		allow-update { any; };
54	};
55
56	zone "1.10.in-addr.arpa" {
57		type primary;
58		file "1.10.in-addr.arpa.db";
59	};
60
61	zone "inline" {
62		type primary;
63		file "internal/inline.db";
64		key-directory "internal";
65		auto-dnssec maintain;
66		inline-signing yes;
67	};
68};
69
70view "external" {
71	match-clients { any; };
72
73	zone "." {
74		type hint;
75		file "../../common/root.hint";
76	};
77
78	zone "example" {
79		type primary;
80		file "example.db";
81	};
82
83	zone "clone" {
84		in-view internal;
85		forward only;
86		forwarders { 10.53.0.5; };
87	};
88
89	zone "1.10.in-addr.arpa" {
90		in-view internal;
91	};
92
93	zone "inline" {
94		type primary;
95		file "external/inline.db";
96		key-directory "external";
97		auto-dnssec maintain;
98		inline-signing yes;
99	};
100};
101