Skip to content

Instantly share code, notes, and snippets.

@corecode
Created February 22, 2025 18:27
migrate dynamically loaded rndc addzone bind config from auto-dnssec to dnssec-policty
# run in /var/named
ls db.*.jnl|while read f; do z=${f#db.};z=${z%.jnl}; rndc showzone $z|grep auto-dnssec >/dev/null && rndc modzone $z $(rndc showzone $z | sed -e 's/^[^{]*{/{/;s/auto-dnssec maintain/dnssec-policy "auto-dnssec-alg8"/'); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment