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}; 26 27key rndc_key { 28 secret "1234abcd8765"; 29 algorithm hmac-sha256; 30}; 31 32controls { 33 inet 10.53.0.2 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; 34}; 35 36zone "." { 37 type hint; 38 file "../../common/root.hint"; 39}; 40 41zone "example" { 42 type primary; 43 file "example.db"; 44 // Check that named can handle a empty also-notify. 45 also-notify { /* empty */ }; 46}; 47 48# use both 'primaries' and 'masters' to test that they 49# can work correctly together. 50primaries noport { 10.53.0.4; }; 51masters x21 port @EXTRAPORT1@ { noport; }; 52 53zone x1 { 54 type primary; 55 file "generic.db"; 56 also-notify { 10.53.0.3; }; 57 notify primary-only; 58}; 59zone x2 { 60 type primary; 61 file "generic.db"; 62 also-notify { 10.53.0.3; }; 63 notify master-only; # test old syntax 64}; 65 66zone x3 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 67zone x4 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 68zone x5 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 69zone x6 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 70zone x7 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 71zone x8 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 72zone x9 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 73zone x10 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 74zone x11 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 75zone x12 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 76zone x13 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 77zone x14 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 78zone x15 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 79zone x16 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 80zone x17 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 81zone x18 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 82zone x19 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 83zone x20 { type primary; file "generic.db"; also-notify { 10.53.0.3; }; }; 84zone x21 { type primary; file "x21.db"; allow-update { any; }; also-notify { x21; }; }; 85