/*
 * 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" %}

options {
	{% include_indented "_common/options/sources.conf.j2" %}
	{% include_indented "_common/options/server.conf.j2" %}
	listen-on { @ns.ip@; 10.53.0.4; 10.53.0.5; };
	listen-on-v6 { none; };
	recursion no;
	new-zones-directory "new-zones";
	dnssec-validation no;
};

view internal {
	match-clients { @ns.ip@; };
	allow-new-zones no;
	recursion yes;

	response-policy { zone "policy"; };

	{% include_indented "_common/root.hint.conf" %}

	zone "policy" {
		type primary;
		file "normal.db";
	};
};

view directory {
	match-clients { 10.53.0.5; };
	allow-new-zones yes;

	{% include_indented "_common/root.hint.conf" %}
};

view external {
	match-clients { any; };
	allow-new-zones yes;

	{% include_indented "_common/root.hint.conf" %}
};

# This view is only here to test that configuration context is cleaned
# up correctly when using multiple named ACLs (regression test for RT #22739)
acl match { none; };
acl nobody { none; };
view extra {
	match-clients { match; };
	allow-new-zones yes;
	allow-transfer { nobody; };
	allow-query { nobody; };
	allow-recursion { nobody; };
};
