xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/checkconf/notify.conf (revision 3f351f34c6d827cf017cdcff3543f6ec0c88b420)
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 master-only;
16
17	# also-notify inconsistent with master-only notify option
18	zone "slave" {
19		type slave;
20		masters { 1.2.3.4; };
21		also-notify { 5.6.7.8; };
22	};
23
24	# OK
25	zone "master" {
26		type master;
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 "slave" {
37		type slave;
38		masters { 1.2.3.4; };
39		also-notify { 5.6.7.8; };
40	};
41
42	# OK
43	zone "master" {
44		type master;
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 "slave" {
54		type slave;
55		masters { 1.2.3.4; };
56		notify no;
57		also-notify { 5.6.7.8; };
58	};
59
60	# OK
61	zone "master" {
62		type master;
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 "slave" {
73		type slave;
74		masters { 1.2.3.4; };
75		notify master-only;
76	};
77
78	# OK
79	zone "master" {
80		type master;
81		file "filename";
82		notify no;
83	};
84};
85