xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/dnssec/ns4/named4.conf.in (revision b5c47949a45ac972130c38cf13dfd8afb1f09285)
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// NS4
13
14options {
15	query-source address 10.53.0.4;
16	notify-source 10.53.0.4;
17	transfer-source 10.53.0.4;
18	port @PORT@;
19	pid-file "named.pid";
20	listen-on { 10.53.0.4; };
21	listen-on-v6 { none; };
22};
23
24key rndc_key {
25	secret "1234abcd8765";
26	algorithm hmac-sha256;
27};
28
29controls {
30	inet 10.53.0.4 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
31};
32
33key auth {
34	secret "1234abcd8765";
35	algorithm hmac-sha256;
36};
37
38include "trusted.conf";
39
40view rec {
41	match-recursive-only yes;
42	recursion yes;
43	dnssec-validation yes;
44	dnssec-accept-expired yes;
45
46	zone "." {
47		type hint;
48		file "../../common/root.hint";
49	};
50
51	zone secure.example {
52		type static-stub;
53		server-addresses { 10.53.0.4; };
54	};
55
56	zone insecure.secure.example {
57		type static-stub;
58		server-addresses { 10.53.0.4; };
59	};
60};
61
62view auth {
63	recursion no;
64	allow-recursion { none; };
65
66	zone secure.example {
67		type secondary;
68		primaries { 10.53.0.3; };
69	};
70
71	zone insecure.secure.example {
72		type secondary;
73		primaries { 10.53.0.2; };
74	};
75};
76