1e2b1b9c0Schristos/*
2e2b1b9c0Schristos * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3e2b1b9c0Schristos *
4*497bf0b8Schristos * SPDX-License-Identifier: MPL-2.0
5*497bf0b8Schristos *
6e2b1b9c0Schristos * This Source Code Form is subject to the terms of the Mozilla Public
7e2b1b9c0Schristos * License, v. 2.0.  If a copy of the MPL was not distributed with this
8*497bf0b8Schristos * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9e2b1b9c0Schristos *
10e2b1b9c0Schristos * See the COPYRIGHT file distributed with this work for additional
11e2b1b9c0Schristos * information regarding copyright ownership.
12e2b1b9c0Schristos */
13e2b1b9c0Schristos
14e2b1b9c0Schristosoptions {
15e2b1b9c0Schristos	query-source address 10.53.0.2;
16e2b1b9c0Schristos	notify-source 10.53.0.2;
17e2b1b9c0Schristos	transfer-source 10.53.0.2;
18e2b1b9c0Schristos	port @PORT@;
19e2b1b9c0Schristos	pid-file "named.pid";
20e2b1b9c0Schristos	listen-on { 10.53.0.2; };
21e2b1b9c0Schristos	listen-on-v6 { none; };
22e2b1b9c0Schristos	recursion no;
23e2b1b9c0Schristos	notify yes;
24e2b1b9c0Schristos	startup-notify-rate 5;
25e2b1b9c0Schristos};
26e2b1b9c0Schristos
27e2b1b9c0Schristoskey rndc_key {
28e2b1b9c0Schristos	secret "1234abcd8765";
29e2b1b9c0Schristos	algorithm hmac-sha256;
30e2b1b9c0Schristos};
31e2b1b9c0Schristos
32e2b1b9c0Schristoscontrols {
33e2b1b9c0Schristos	inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
34e2b1b9c0Schristos};
35e2b1b9c0Schristos
36e2b1b9c0Schristoszone "." {
37e2b1b9c0Schristos	type hint;
38e2b1b9c0Schristos	file "../../common/root.hint";
39e2b1b9c0Schristos};
40e2b1b9c0Schristos
41e2b1b9c0Schristoszone "example" {
428260f9a8Schristos	type primary;
43e2b1b9c0Schristos	file "example.db";
44e2b1b9c0Schristos	// Check that named can handle a empty also-notify.
45e2b1b9c0Schristos	also-notify { /* empty */ };
46e2b1b9c0Schristos};
47e2b1b9c0Schristos
488260f9a8Schristos# use both 'primaries' and 'masters' to test that they
498260f9a8Schristos# can work correctly together.
508260f9a8Schristosprimaries noport { 10.53.0.4; };
51e2b1b9c0Schristosmasters x21 port @EXTRAPORT1@ { noport; };
52e2b1b9c0Schristos
538260f9a8Schristoszone x1 {
548260f9a8Schristos    type primary;
558260f9a8Schristos	file "generic.db";
568260f9a8Schristos	also-notify { 10.53.0.3; };
578260f9a8Schristos    notify primary-only;
588260f9a8Schristos};
598260f9a8Schristoszone x2 {
608260f9a8Schristos    type primary;
618260f9a8Schristos	file "generic.db";
628260f9a8Schristos	also-notify { 10.53.0.3; };
638260f9a8Schristos    notify master-only; # test old syntax
648260f9a8Schristos};
658260f9a8Schristos
668260f9a8Schristoszone x3 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
678260f9a8Schristoszone x4 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
688260f9a8Schristoszone x5 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
698260f9a8Schristoszone x6 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
708260f9a8Schristoszone x7 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
718260f9a8Schristoszone x8 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
728260f9a8Schristoszone x9 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
738260f9a8Schristoszone x10 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
748260f9a8Schristoszone x11 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
758260f9a8Schristoszone x12 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
768260f9a8Schristoszone x13 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
778260f9a8Schristoszone x14 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
788260f9a8Schristoszone x15 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
798260f9a8Schristoszone x16 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
808260f9a8Schristoszone x17 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
818260f9a8Schristoszone x18 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
828260f9a8Schristoszone x19 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
838260f9a8Schristoszone x20 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; };
848260f9a8Schristoszone x21 { type primary; file "x21.db"; allow-update { any; }; also-notify { x21; }; };
85