named2.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
20
21options {
22	port @PORT@;
23	pid-file "named.pid";
24	listen-on { 10.53.0.2; 10.53.0.4; };
25	listen-on-v6 { none; };
26	recursion no;
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 external {
48	match-clients { any; };
49	allow-new-zones yes;
50
51	zone "." {
52		type hint;
53		file "../../common/root.hint";
54	};
55};
56
57# This view is only here to test that configuration context is cleaned
58# up correctly when using multiple named ACLs (regression test for RT #22739)
59acl match { none; };
60acl nobody { none; };
61view extra {
62	match-clients { match; };
63	allow-new-zones yes;
64	allow-transfer { nobody; };
65	allow-query { nobody; };
66	allow-recursion { nobody; };
67};
68