/*
 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
 *
 * SPDX-License-Identifier: MPL-2.0
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0.  If a copy of the MPL was not distributed with this
 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
 *
 * See the COPYRIGHT file distributed with this work for additional
 * information regarding copyright ownership.
 */

{% include "_common/controls.conf.j2" %}

tls self-signed {
	cert-file "../self-signed-cert.pem";
	key-file "../self-signed-key.pem";
};

options {
	{% include_indented "_common/options/sources.conf.j2" %}
	{% include_indented "_common/options/server.conf.j2" %}
	##
	# generic test
	listen-on { @ns.ip@; };

	listen-on port @EXTRAPORT1@ proxy plain { @ns.ip@; };
	listen-on port @TLSPORT@ proxy encrypted tls self-signed { @ns.ip@; };
	listen-on port @EXTRAPORT2@ proxy plain tls self-signed { @ns.ip@; };
	listen-on port @HTTPSPORT@ proxy encrypted tls self-signed http default { @ns.ip@; };
	listen-on port @EXTRAPORT3@ proxy plain tls self-signed http default { @ns.ip@; };
	listen-on port @HTTPPORT@ proxy plain tls none http default { @ns.ip@; };

	listen-on-v6 port @EXTRAPORT1@ proxy plain { @ns.ip6@; };
	listen-on-v6 port @TLSPORT@ proxy encrypted tls self-signed { @ns.ip6@; };
	listen-on-v6 port @EXTRAPORT2@ proxy plain tls self-signed { @ns.ip6@; };
	listen-on-v6 port @HTTPSPORT@ proxy encrypted tls self-signed http default { @ns.ip6@; };
	listen-on-v6 port @EXTRAPORT3@ proxy plain tls self-signed http default { @ns.ip6@; };
	listen-on-v6 port @HTTPPORT@ proxy plain tls none http default { @ns.ip6@; };

	recursion no;
	notify explicit;
	statistics-file "named.stats";
	dnssec-validation no;
	tcp-initial-timeout 1200;
};

zone "example" {
	type primary;
	file "example.db";
	allow-query { any; };
};
