named3.conf.in revision 1.1.1.3
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
14include "../../common/rndc.key";
15
16controls {
17	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
18};
19
20options {
21	port @PORT@;
22	pid-file "named.pid";
23	listen-on { 10.53.0.2; 10.53.0.4; 10.53.0.5; };
24	listen-on-v6 { none; };
25	recursion no;
26	new-zones-directory "new-zones";
27};
28
29view internal {
30	match-clients { 10.53.0.2; };
31	allow-new-zones no;
32	recursion yes;
33
34	response-policy { zone "policy"; };
35
36	zone "." {
37		type hint;
38		file "../../common/root.hint";
39	};
40
41	zone "policy" {
42		type primary;
43		file "normal.db";
44	};
45};
46
47view directory {
48	match-clients { 10.53.0.5; };
49	allow-new-zones yes;
50
51	zone "." {
52		type hint;
53		file "../../common/root.hint";
54	};
55};
56
57view external {
58	match-clients { any; };
59	allow-new-zones yes;
60
61	zone "." {
62		type hint;
63		file "../../common/root.hint";
64	};
65};
66
67# This view is only here to test that configuration context is cleaned
68# up correctly when using multiple named ACLs (regression test for RT #22739)
69acl match { none; };
70acl nobody { none; };
71view extra {
72	match-clients { match; };
73	allow-new-zones yes;
74	allow-transfer { nobody; };
75	allow-query { nobody; };
76	allow-recursion { nobody; };
77};
78