xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/checkconf/notify.conf (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
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
14view one {
15	notify primary-only;
16
17	# also-notify inconsistent with primary-only notify option
18	zone "secondary" {
19		type secondary;
20		primaries { 1.2.3.4; };
21		also-notify { 5.6.7.8; };
22	};
23
24	# OK
25	zone "primary" {
26		type primary;
27		file "filename";
28		also-notify { 5.6.7.8; };
29	};
30};
31
32view two {
33	notify no;
34
35	# also-notify inconsistent with notify option at the view level
36	zone "secondary" {
37		type secondary;
38		primaries { 1.2.3.4; };
39		also-notify { 5.6.7.8; };
40	};
41
42	# OK
43	zone "primary" {
44		type primary;
45		file "filename";
46		notify yes;
47		also-notify { 5.6.7.8; };
48	};
49};
50
51view three {
52	# also-notify inconsistent with notify option at the zone level
53	zone "secondary" {
54		type secondary;
55		primaries { 1.2.3.4; };
56		notify no;
57		also-notify { 5.6.7.8; };
58	};
59
60	# OK
61	zone "primary" {
62		type primary;
63		file "filename";
64		also-notify { 5.6.7.8; };
65	};
66};
67
68view four {
69	also-notify { 5.6.7.8; };
70
71	# OK
72	zone "secondary" {
73		type secondary;
74		primaries { 1.2.3.4; };
75		notify primary-only;
76	};
77
78	# OK
79	zone "primary" {
80		type primary;
81		file "filename";
82		notify no;
83	};
84};
85