diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-04 21:26:10 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-04 21:26:10 +0100 |
| commit | 403e010c5203a9ae418f4ed9636e4e56c6fafc02 (patch) | |
| tree | 7a35a494a78705ba2f8d949534ec3c2c256f24e5 /dnsutils.sh.in | |
| parent | 8ea6e4b3c555048e1cf5efdde2329df411894f48 (diff) | |
| download | lfacme-403e010c5203a9ae418f4ed9636e4e56c6fafc02.tar.gz lfacme-403e010c5203a9ae418f4ed9636e4e56c6fafc02.tar.bz2 | |
make program paths configurable
Diffstat (limited to 'dnsutils.sh.in')
| -rw-r--r-- | dnsutils.sh.in | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dnsutils.sh.in b/dnsutils.sh.in index a1523ff..290f1e3 100644 --- a/dnsutils.sh.in +++ b/dnsutils.sh.in @@ -2,6 +2,9 @@ # # Utility functions for DNS-based authorizations. +_DIG="$(_findbin dig $ACME_DNS_DIG)" +_NSUPDATE="$(_findbin nsupdate $ACME_DNS_NSUPDATE)" + # Retrieve the nameservers for a given domain. On failure, prints an error # message and exits. lfacme_dns_getnameservers() { @@ -19,7 +22,7 @@ lfacme_dns_getnameservers() { # For CNAME records, a query for NS will return the CNAME. # Therefore we have to check we actually got NS records. local nameservers="$( - dig "$_trydomain" ns +noall +answer | \ + $_DIG "$_trydomain" ns +noall +answer | \ awk '$4 == "NS" { print $5 }' )" @@ -53,7 +56,7 @@ lfacme_dns_wait_for_nameserver() { fi local _rdatas="$( - dig "_acme-challenge.$domain" txt @$nameserver \ + $_DIG "_acme-challenge.$domain" txt @$nameserver \ +noall +answer \ | awk '$4 == "TXT" { print $5 }' )" |
