Debian Codegraph @

bin/tests/system/transport-acl/ns1/named.conf.in

raw
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 yes;
68 tcp-initial-timeout 1200;
69 };
70
71 trust-anchors { };
72
73 zone "example0" {
74 type primary;
75 file "example.db";
76 allow-transfer port @TLSPORT@ transport tls { any; };
77 };
78
79 zone "example1" {
80 type primary;
81 file "example.db";
82 allow-transfer port @EXTRAPORT1@ { any; };
83 };
84
85 zone "example2" {
86 type primary;
87 file "example.db";
88 allow-transfer transport tcp { any; };
89 };
90
91 zone "example3" {
92 type primary;
93 file "example.db";
94 allow-transfer transport tls { any; };
95 };
96
97 zone "example4" {
98 type primary;
99 file "example.db";
100 allow-transfer port @EXTRAPORT1@ transport tcp { any; };
101 };
102
103 zone "example5" {
104 type primary;
105 file "example.db";
106 allow-transfer port @EXTRAPORT3@ transport tls { any; };
107 };
108
109 zone "example6" {
110 type primary;
111 file "example.db";
112 allow-transfer port @EXTRAPORT5@ transport tcp { 10.53.0.7; 10.53.0.8; 10.53.0.9; };
113 };
114
115 zone "example7" {
116 type primary;
117 file "example.db";
118 allow-transfer port @EXTRAPORT6@ transport tls { 10.53.0.7; 10.53.0.8; 10.53.0.9; };
119 };
120
121 zone "example8" {
122 type primary;
123 file "example.db";
124 allow-transfer port @EXTRAPORT7@ transport tls { 10.53.0.1; 10.53.0.2; 10.53.0.3; };
125 };
126
127 zone "example9" {
128 type primary;
129 file "example.db";
130 allow-transfer port @EXTRAPORT8@ transport tcp { 10.53.0.7; !10.53.0.8; 10.53.0.9; };
131 };