Browse Source

Update dns_del_nsupdate

pull/393/head
Robbie Mckennie 8 years ago
committed by GitHub
parent
commit
ed8756d7c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      dns_scripts/dns_del_nsupdate

+ 1
- 7
dns_scripts/dns_del_nsupdate View File

@ -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

Loading…
Cancel
Save