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 14 include "../../_common/rndc.key"; 15 16 controls { 17 inet 10.53.0.1 port @CONTROLPORT@ allow { any; } keys { rndc_key; }; 18 }; 19 20 tls self-signed { 21 cert-file "../self-signed-cert.pem"; 22 key-file "../self-signed-key.pem"; 23 }; 24 25 options { 26 pid-file "named.pid"; 27 ## 28 # generic test 29 listen-on port @PORT@ { 10.53.0.1; }; 30 listen-on port @TLSPORT@ tls self-signed { 10.53.0.1; }; 31 # test #1 32 listen-on port @EXTRAPORT1@ { 10.53.0.1; }; 33 listen-on port @EXTRAPORT1@ tls self-signed { 10.53.0.2; }; 34 listen-on port @EXTRAPORT2@ { 10.53.0.1; }; 35 listen-on port @EXTRAPORT2@ tls self-signed { 10.53.0.2; }; 36 # test #2 37 listen-on port @EXTRAPORT1@ { 10.53.0.3; }; 38 listen-on port @EXTRAPORT2@ { 10.53.0.3; }; 39 listen-on port @EXTRAPORT1@ tls self-signed { 10.53.0.4; }; 40 listen-on port @EXTRAPORT2@ tls self-signed { 10.53.0.4; }; 41 # test #3 42 listen-on port @EXTRAPORT3@ tls self-signed { 10.53.0.3; }; 43 listen-on port @EXTRAPORT4@ tls self-signed { 10.53.0.3; }; 44 listen-on port @EXTRAPORT3@ { 10.53.0.4; }; 45 listen-on port @EXTRAPORT4@ { 10.53.0.4; }; 46 # test #4 47 listen-on port @EXTRAPORT1@ { 10.53.0.5; }; 48 listen-on port @EXTRAPORT2@ { 10.53.0.5; }; 49 listen-on port @EXTRAPORT1@ tls self-signed { 10.53.0.6; }; 50 # test #5 51 listen-on port @EXTRAPORT3@ tls self-signed { 10.53.0.1; }; 52 listen-on port @EXTRAPORT4@ tls self-signed { 10.53.0.1; }; 53 listen-on port @EXTRAPORT3@ { 10.53.0.2; }; 54 # test #6 55 listen-on port @EXTRAPORT5@ { 10.53.0.1; }; 56 # test #7 57 listen-on port @EXTRAPORT6@ tls self-signed { 10.53.0.1; }; 58 # test #7 59 listen-on port @EXTRAPORT7@ tls self-signed { 10.53.0.1; }; 60 # test #8 61 listen-on port @EXTRAPORT8@ { 10.53.0.1; }; 62 ## 63 listen-on-v6 { none; }; 64 recursion no; 65 notify explicit; 66 statistics-file "named.stats"; 67 dnssec-validation no; 68 tcp-initial-timeout 1200; 69 }; 70 71 72 zone "example0" { 73 type primary; 74 file "example.db"; 75 allow-transfer port @TLSPORT@ transport tls { any; }; 76 }; 77 78 zone "example1" { 79 type primary; 80 file "example.db"; 81 allow-transfer port @EXTRAPORT1@ { any; }; 82 }; 83 84 zone "example2" { 85 type primary; 86 file "example.db"; 87 allow-transfer transport tcp { any; }; 88 }; 89 90 zone "example3" { 91 type primary; 92 file "example.db"; 93 allow-transfer transport tls { any; }; 94 }; 95 96 zone "example4" { 97 type primary; 98 file "example.db"; 99 allow-transfer port @EXTRAPORT1@ transport tcp { any; }; 100 }; 101 102 zone "example5" { 103 type primary; 104 file "example.db"; 105 allow-transfer port @EXTRAPORT3@ transport tls { any; }; 106 }; 107 108 zone "example6" { 109 type primary; 110 file "example.db"; 111 allow-transfer port @EXTRAPORT5@ transport tcp { 10.53.0.7; 10.53.0.8; 10.53.0.9; }; 112 }; 113 114 zone "example7" { 115 type primary; 116 file "example.db"; 117 allow-transfer port @EXTRAPORT6@ transport tls { 10.53.0.7; 10.53.0.8; 10.53.0.9; }; 118 }; 119 120 zone "example8" { 121 type primary; 122 file "example.db"; 123 allow-transfer port @EXTRAPORT7@ transport tls { 10.53.0.1; 10.53.0.2; 10.53.0.3; }; 124 }; 125 126 zone "example9" { 127 type primary; 128 file "example.db"; 129 allow-transfer port @EXTRAPORT8@ transport tcp { 10.53.0.7; !10.53.0.8; 10.53.0.9; }; 130 }; 131