DNS Update RFC2136 script for Dehydrated and Let's Encrypt
Use RFC2136 DNS updates with TSIG to set DNS challenge for dehydrated.
deploy_challenge() {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
/path/to/dehydrated-dns-update.pl -u "${DOMAIN}" "${TOKEN_VALUE}"
}
clean_challenge() {
local DOMAIN="${1}" TOKEN_FILENAME="${2}" TOKEN_VALUE="${3}"
/path/to/dehydrated-dns-update.pl -d "${DOMAIN}" "${TOKEN_VALUE}"
}