xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/notify/ns2/named.conf.in (revision f8cf1a9151c7af1cb0bd8b09c13c66bca599c027)
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
14options {
15	query-source address 10.53.0.2;
16	notify-source 10.53.0.2;
17	transfer-source 10.53.0.2;
18	port @PORT@;
19	pid-file "named.pid";
20	listen-on { 10.53.0.2; };
21	listen-on-v6 { none; };
22	recursion no;
23	notify yes;
24	startup-notify-rate 5;
25	dnssec-validation no;
26};
27
28key rndc_key {
29	secret "1234abcd8765";
30	algorithm @DEFAULT_HMAC@;
31};
32
33controls {
34	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
35};
36
37zone "." {
38	type hint;
39	file "../../_common/root.hint";
40};
41
42zone "example" {
43	type primary;
44	file "example.db";
45	// Check that named can handle a empty also-notify.
46	also-notify { /* empty */ };
47};
48
49# use both 'primaries' and 'masters' to test that they
50# can work correctly together.
51primaries noport { 10.53.0.4; };
52masters x21 port @EXTRAPORT1@ { noport; };
53
54zone x1 {
55	type primary;
56	file "generic.db";
57	also-notify { 10.53.0.3; };
58	notify-source 10.53.0.2 port @EXTRAPORT2@;
59	notify primary-only;
60};
61zone x2 {
62	type primary;
63	file "generic.db";
64	also-notify { 10.53.0.3; };
65	notify master-only; # test old syntax
66};
67
68zone x3 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
69zone x4 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
70zone x5 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
71zone x6 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
72zone x7 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
73zone x8 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
74zone x9 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
75zone x10 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
76zone x11 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
77zone x12 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
78zone x13 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
79zone x14 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
80zone x15 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
81zone x16 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
82zone x17 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
83zone x18 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
84zone x19 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
85zone x20 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
86zone x21 { type primary; file "x21.db"; allow-update { any; }; also-notify { x21; }; };
87