#!/usr/bin/bash # installer les paquets en dépendances : # dnf install bind DOMAINS="casperlefantom.net lelux.fi saulnier.im" TSIG="hmac-sha512" for i in $DOMAINS do HASH=`rndc-confgen -A $TSIG -k $i | grep "secret" | head -1 | cut -d '"' -f2` echo "File to update: roles/dnsserver/vars/keys.yml" echo "Name: $i" echo "Secret: $HASH" echo "Algo: $TSIG" done