xref: /netbsd-src/external/mpl/bind/dist/bin/tests/system/doth/ns4/named.conf.in (revision 22ebeae4b2252475e0ebe332f69734639cb946ea)
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# We need a separate instance for the "rndc reconfig" test in order to
15# ensure that it does not use ephemeral keys (these are costly to
16# generate) and creates a minimal amount of TLS contexts, reducing the
17# time needed for startup/reconfiguration. Long
18# startup/reconfiguration was known to cause timeout issues in the CI
19# system, where many tests run in parallel.
20
21include "../../_common/rndc.key";
22
23controls {
24	inet 10.53.0.4 port @CONTROLPORT@ allow { any; } keys { rndc_key; };
25};
26
27tls local {
28	key-file "../CA/certs/srv04.crt01.example.com.key";
29	cert-file "../CA/certs/srv04.crt01.example.com.pem";
30	dhparam-file "../dhparam3072.pem";
31};
32
33http local {
34	endpoints { "/dns-query"; };
35};
36
37options {
38	query-source address 10.53.0.4;
39	notify-source 10.53.0.4;
40	transfer-source 10.53.0.4;
41	port @PORT@;
42	tls-port @TLSPORT@;
43	https-port @HTTPSPORT@;
44	http-port @HTTPPORT@;
45	pid-file "named.pid";
46	listen-on { 10.53.0.4; };
47	listen-on tls local { 10.53.0.4; };             // DoT
48	listen-on tls local http local { 10.53.0.4; };  // DoH
49	listen-on-v6 { none; };
50	recursion no;
51	notify no;
52	ixfr-from-differences yes;
53	check-integrity no;
54	dnssec-validation yes;
55};
56
57zone "." {
58	type hint;
59	file "../../_common/root.hint";
60};
61
62tls tls-v1.2-pfs {
63	protocols { TLSv1.2; };
64	ciphers "HIGH:!kRSA:!aNULL:!eNULL:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!SHA1:!SHA256:!SHA384";
65	prefer-server-ciphers no;
66};
67
68zone "example" {
69	type secondary;
70	primaries { 10.53.0.1 tls tls-v1.2-pfs; };
71	file "example.db";
72	allow-transfer { any; };
73};
74