Skip to content

Instantly share code, notes, and snippets.

@corecode
Created February 22, 2025 18:27
Show Gist options
  • Save corecode/1602bf189aa0dbe7f739cb2f7f76cd39 to your computer and use it in GitHub Desktop.
Save corecode/1602bf189aa0dbe7f739cb2f7f76cd39 to your computer and use it in GitHub Desktop.
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