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.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
18};
19
20options {
21	query-source address 10.53.0.1;
22	notify-source 10.53.0.1;
23	transfer-source 10.53.0.1;
24	port @PORT@;
25	tls-port @TLSPORT@;
26	allow-new-zones yes;
27	pid-file "named.pid";
28	listen-on { 10.53.0.1; };
29	listen-on port @EXTRAPORT1@ { 10.53.0.1; };
30	listen-on tls ephemeral { 10.53.0.1; };
31	listen-on-v6 { none; };
32	notify no;
33	recursion no;
34	allow-transfer { any; };
35	dnssec-validation no;
36};
37
38view "default" {
39
40	zone "catalog1.example" {
41		type primary;
42		file "catalog1.example.db";
43		allow-transfer { any; };
44		allow-update { any; };
45		also-notify { 10.53.0.2; };
46		notify explicit;
47	};
48
49	/* catalog2 is provided by the ns3 primary */
50
51	zone "catalog3.example" {
52		type primary;
53		file "catalog3.example.db";
54		allow-transfer { any; };
55		allow-update { any; };
56		also-notify { 10.53.0.2; };
57		notify explicit;
58	};
59
60	zone "catalog4.example" {
61		type primary;
62		file "catalog4.example.db";
63		allow-transfer { any; };
64		allow-update { any; };
65		also-notify { 10.53.0.2; };
66		notify explicit;
67	};
68
69	/* catalog5 is missing on purpose */
70
71	# No "version" property
72	zone "catalog-bad1.example" {
73		type primary;
74		file "catalog-bad1.example.db";
75		allow-transfer { any; };
76		allow-update { any; };
77		also-notify { 10.53.0.2; };
78		notify explicit;
79	};
80
81	# Unsupported "version" property
82	zone "catalog-bad2.example" {
83		type primary;
84		file "catalog-bad2.example.db";
85		allow-transfer { any; };
86		allow-update { any; };
87		also-notify { 10.53.0.2; };
88		notify explicit;
89	};
90
91	# Two RRs in TXT RRset for the "version" property
92	zone "catalog-bad3.example" {
93		type primary;
94		file "catalog-bad3.example.db";
95		allow-transfer { any; };
96		allow-update { any; };
97		also-notify { 10.53.0.2; };
98		notify explicit;
99	};
100
101	# Type A "version" property
102	zone "catalog-bad4.example" {
103		type primary;
104		file "catalog-bad4.example.db";
105		allow-transfer { any; };
106		allow-update { any; };
107		also-notify { 10.53.0.2; };
108		notify explicit;
109	};
110
111	# A catalog zone that requires TLS to be used
112	zone "catalog-tls.example" {
113		type primary;
114		file "catalog-tls.example.db";
115		allow-transfer transport tls { key tsig_key; };
116		allow-update { any; };
117		also-notify { 10.53.0.4; };
118		notify explicit;
119	};
120};
121
122view "ch" ch {
123
124	# Non-IN class catalog zone
125	zone "catalog-bad5.example" ch {
126		type primary;
127		file "catalog-bad5.example.db";
128		allow-transfer { any; };
129		allow-update { any; };
130		also-notify { 10.53.0.2; };
131		notify explicit;
132	};
133
134};
135
136key tsig_key. {
137	secret "LSAnCU+Z";
138	algorithm @DEFAULT_HMAC@;
139};
140
141key next_key. {
142	secret "LaAnCU+Z";
143	algorithm @DEFAULT_HMAC@;
144};
145