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	query-source address 10.53.0.2;
22	notify-source 10.53.0.2;
23	transfer-source 10.53.0.2;
24	port @PORT@;
25	pid-file "named.pid";
26	listen-on { 10.53.0.2; };
27	listen-on-v6 { fd92:7065:b8e:ffff::2; };
28	notify no;
29	recursion no;
30	serial-query-rate 100;
31	dnssec-validation no;
32};
33
34view "default" {
35
36	# Removed catalog-zone option, otherwise this is
37	# identical to named1.conf.in
38
39	zone "dom-existing.example" {
40	    type primary;
41	    file "dom-existing.example.db";
42	};
43
44	zone "dom-existing-forward.example" {
45	    type forward;
46	    forward only;
47	    forwarders { 10.53.0.1; };
48	};
49
50	zone "dom-existing-forward-off.example" {
51	    type forward;
52	    forward only;
53	    forwarders { };
54	};
55
56	zone "catalog1.example" {
57		type secondary;
58		file "catalog1.example.db";
59		primaries { 10.53.0.1; };
60	};
61
62	zone "catalog2.example" {
63		type secondary;
64		file "catalog2.example.db";
65		primaries { 10.53.0.3; };
66	};
67
68	zone "catalog3.example" {
69		type secondary;
70		file "catalog3.example.db";
71		primaries { 10.53.0.1; };
72	};
73
74	zone "catalog4.example" {
75		type secondary;
76		file "catalog4.example.db";
77		primaries { 10.53.0.1; };
78	};
79
80	# No "version" property
81	zone "catalog-bad1.example" {
82		type secondary;
83		file "catalog-bad1.example.db";
84		primaries { 10.53.0.1; };
85	};
86
87	# Unsupported "version" property
88	zone "catalog-bad2.example" {
89		type secondary;
90		file "catalog-bad2.example.db";
91		primaries { 10.53.0.1; };
92	};
93
94	# Two RRs in TXT RRset for the "version" property
95	zone "catalog-bad3.example" {
96		type secondary;
97		file "catalog-bad3.example.db";
98		primaries { 10.53.0.1; };
99	};
100
101	# Type A "version" property
102	zone "catalog-bad4.example" {
103		type secondary;
104		file "catalog-bad4.example.db";
105		primaries { 10.53.0.1; };
106	};
107
108};
109
110view "ch" ch {
111
112	# Removed catalog-zone option, otherwise this is
113	# identical to named1.conf.in
114
115	# Non-IN class catalog zone
116	zone "catalog-bad5.example" ch {
117		type secondary;
118		file "catalog-bad5.example.db";
119		primaries { 10.53.0.1; };
120	};
121
122};
123
124key tsig_key. {
125	secret "LSAnCU+Z";
126	algorithm @DEFAULT_HMAC@;
127};
128