/*
 * 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.
 */

{% set alg_roll = alg_roll | default(False) %}
{% set policy = "rsasha256" if not alg_roll else "ecdsa256" %}

include "kasp.conf";
include "named.common.conf";

zone "step1.algorithm-roll.kasp" {
	type primary;
	file "step1.algorithm-roll.kasp.db";
	dnssec-policy @policy@;
};

{% if alg_roll %}
zone "step2.algorithm-roll.kasp" {
	type primary;
	file "step2.algorithm-roll.kasp.db";
	dnssec-policy "ecdsa256";
};

zone "step3.algorithm-roll.kasp" {
	type primary;
	file "step3.algorithm-roll.kasp.db";
	dnssec-policy "ecdsa256";
};

zone "step4.algorithm-roll.kasp" {
	type primary;
	file "step4.algorithm-roll.kasp.db";
	dnssec-policy "ecdsa256";
};

zone "step5.algorithm-roll.kasp" {
	type primary;
	file "step5.algorithm-roll.kasp.db";
	dnssec-policy "ecdsa256";
};

zone "step6.algorithm-roll.kasp" {
	type primary;
	file "step6.algorithm-roll.kasp.db";
	dnssec-policy "ecdsa256";
};
{% endif %}
