Skip to content

Commit

Permalink
Merge pull request #267 from akissa/master
Browse files Browse the repository at this point in the history
FIX: DNS update hook uses incorrect nsupdate cmds
  • Loading branch information
hlandau authored Jul 12, 2017
2 parents d36bc1f + c1e5f3e commit d56a7a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _doc/dns.hook
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# # not necessary.
# TKIP_KEY_NAME="hmac-sha256:tk1"
# TKIP_KEY="a base64-encoded TKIP key"
#
#
# # DNS synchronization timeout in seconds. Default is 60.
# DNS_SYNC_TIMEOUT=60
#
Expand Down Expand Up @@ -54,7 +54,7 @@ waitns() {

# Best effort cleanup.
echo $0: timed out waiting ${DNS_SYNC_TIMEOUT}s for nameserver $ns >&2
updns del || echo $0: failed to clean up records after timing out >&2
updns delete || echo $0: failed to clean up records after timing out >&2

return 1
}
Expand All @@ -64,7 +64,7 @@ updns() {
(
declare -f nsupdate_cmds >/dev/null && nsupdate_cmds "$APEX"
[ -n "$TKIP_KEY" ] && echo key "$TKIP_KEY_NAME" "$TKIP_KEY"
echo $op "_acme-challenge.${CH_HOSTNAME}." 60 IN TXT "\"${CH_TXT_VALUE}\""
echo update $op "_acme-challenge.${CH_HOSTNAME}." 60 IN TXT "\"${CH_TXT_VALUE}\""
echo send
) | nsupdate $NSUPDATE_ARGS
}
Expand Down Expand Up @@ -94,7 +94,7 @@ case "$EVENT_NAME" in

challenge-dns-stop)
get_apex "$CH_HOSTNAME"
updns del
updns delete
;;

*)
Expand Down

0 comments on commit d56a7a4

Please sign in to comment.