Robbie Mckennie
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
7 deletions
-
dns_scripts/dns_del_nsupdate
|
|
|
@ -6,10 +6,4 @@ dnskeyfile="path/to/bla.key" |
|
|
|
fulldomain="$1" |
|
|
|
token="$2" |
|
|
|
|
|
|
|
updatefile=$(mktemp) |
|
|
|
|
|
|
|
printf "update delete _acme-challenge.%s. 300 in TXT \"%s\"\n\n" "${fulldomain}" "${token}" > "${updatefile}" |
|
|
|
|
|
|
|
nsupdate -k "${dnskeyfile}" -v "${updatefile}" |
|
|
|
|
|
|
|
rm -f "${updatefile}" |
|
|
|
printf "update delete _acme-challenge.%s. 300 in TXT \"%s\"\n\n" "${fulldomain}" "${token}" | nsupdate -k "${dnskeyfile}" -v |