Skip to content

Commit 7b24dd4

Browse files
authored
Merge pull request #610 from srvrco/release_231
Release v2.31
2 parents 3c5bd66 + e5d44d3 commit 7b24dd4

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

Diff for: getssl

+12-8
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@
241241
# 2020-10-02 Various fixes to get_auth_dns and changes to support unit tests (#308)
242242
# 2020-10-04 Add CHECK_PUBLIC_DNS_SERVER to check the DNS challenge has been updated there
243243
# 2020-10-13 Bugfix: strip comments in drill/dig output (mhameed)
244-
# 2020-11-18 Wildcard support (#347)(#400)
244+
# 2020-11-18 Wildcard support (#347)(#400)(2.31)
245245
# ----------------------------------------------------------------------------------------
246246

247247
PROGNAME=${0##*/}
248248
PROGDIR="$(cd "$(dirname "$0")" || exit; pwd -P;)"
249-
VERSION="2.30"
249+
VERSION="2.31"
250250

251251
# defaults
252252
ACCOUNT_KEY_LENGTH=4096
@@ -1255,13 +1255,11 @@ done # end of ... loop through domains for cert ( from SANS list)
12551255

12561256
get_auth_dns() { # get the authoritative dns server for a domain (sets primary_ns )
12571257
orig_gad_d="$1" # domain name
1258-
gad_s="$PUBLIC_DNS_SERVER" # start with PUBLIC_DNS_SERVER
1259-
if [[ -n "$gad_s" ]]; then
1260-
gad_s="@$gad_s"
1261-
fi
1258+
orig_gad_s="$PUBLIC_DNS_SERVER" # start with PUBLIC_DNS_SERVER
1259+
gad_d="$orig_gad_d"
1260+
gad_s="$orig_gad_s"
12621261

12631262
if [[ "$os" == "cygwin" ]]; then
1264-
gad_d="$orig_gad_d"
12651263
# shellcheck disable=SC2086
12661264
all_auth_dns_servers=$(nslookup -type=soa "${d}" ${PUBLIC_DNS_SERVER} 2>/dev/null \
12671265
| grep "primary name server" \
@@ -1278,7 +1276,10 @@ get_auth_dns() { # get the authoritative dns server for a domain (sets primary_n
12781276
fi
12791277

12801278
if [[ -n "$HAS_DIG_OR_DRILL" ]]; then
1281-
gad_d="$orig_gad_d"
1279+
if [[ -n "$gad_s" ]]; then
1280+
gad_s="@$gad_s"
1281+
fi
1282+
12821283
# Use SOA +trace to find the name server
12831284
if [[ $_TEST_SKIP_SOA_CALL == 0 ]]; then
12841285
if [[ "$HAS_DIG_OR_DRILL" == "dig" ]]; then
@@ -1350,6 +1351,9 @@ get_auth_dns() { # get the authoritative dns server for a domain (sets primary_n
13501351
fi
13511352
fi
13521353

1354+
# Remove leading '@' if we tried using dig/drill
1355+
gad_s="$orig_gad_s"
1356+
13531357
if [[ "$HAS_HOST" == "true" ]]; then
13541358
gad_d="$orig_gad_d"
13551359
debug Using "host -t NS" to find primary name server for "$gad_d"

Diff for: test/test-config/getssl-staging-dns01.cfg

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ VALIDATE_VIA_DNS=true
66
DNS_ADD_COMMAND="/getssl/dns_scripts/dns_add_duckdns"
77
DNS_DEL_COMMAND="/getssl/dns_scripts/dns_del_duckdns"
88
PUBLIC_DNS_SERVER=1.1.1.1
9-
CHECK_ALL_AUTH_DNS="false"
9+
CHECK_ALL_AUTH_DNS="true"
10+
CHECK_PUBLIC_DNS_SERVER="true"
1011
DNS_EXTRA_WAIT=120
1112

12-
# Speed up the test by reducing the number or retries and the wait between retries.
13-
DNS_WAIT=2
14-
DNS_WAIT_COUNT=11
13+
# Speed up the test by reducing the number or retries and retrying DNS_ADD after 10 failures
14+
DNS_WAIT_COUNT=20
1515
DNS_WAIT_RETRY_ADD="true"
1616

1717
ACCOUNT_KEY_TYPE="rsa"

0 commit comments

Comments
 (0)