Created
February 22, 2025 18:27
migrate dynamically loaded rndc addzone bind config from auto-dnssec to dnssec-policty
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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