From 5d263126ecf6d4de380450cb1686ee574bc50927 Mon Sep 17 00:00:00 2001 From: Marcel Waldvogel Date: Sun, 16 Jul 2017 21:03:10 +0200 Subject: [PATCH] Interface to `nsupdate -l` Configurationless operation when `nsupdate -l` works --- dnsapi/dns_nsupdate_l.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 dnsapi/dns_nsupdate_l.sh diff --git a/dnsapi/dns_nsupdate_l.sh b/dnsapi/dns_nsupdate_l.sh new file mode 100755 index 00000000..01ce2b7b --- /dev/null +++ b/dnsapi/dns_nsupdate_l.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env sh + +######## Public functions ##################### + +#Usage: dns_nsupdate_l_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs" +dns_nsupdate_l_add() { + fulldomain=$1 + txtvalue=$2 + _info "adding ${fulldomain}. 60 in txt \"${txtvalue}\"" + nsupdate -l <