File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -20106,6 +20106,7 @@ get_local_a() {
20106
20106
check_resolver_bins() {
20107
20107
local saved_openssl_conf="$OPENSSL_CONF"
20108
20108
20109
+ OPENSSL_CONF="" # see https://github.com/drwetter/testssl.sh/issues/134
20109
20110
type -p dig &> /dev/null && HAS_DIG=true
20110
20111
type -p host &> /dev/null && HAS_HOST=true
20111
20112
type -p drill &> /dev/null && HAS_DRILL=true
@@ -20115,19 +20116,15 @@ check_resolver_bins() {
20115
20116
type -p idn2 &>/dev/null && HAS_IDN2=true
20116
20117
20117
20118
# Old dig versions don't have an option to ignore $HOME/.digrc
20118
- if dig -r 2>&1 | grep -qiE 'invalid|usage '; then
20119
+ if ! dig -h | grep -qE '\-r.*~/.digrc '; then
20119
20120
HAS_DIG_R=false
20120
20121
DIG_R=""
20121
20122
fi
20122
-
20123
- OPENSSL_CONF="" # see https://github.com/drwetter/testssl.sh/issues/134
20124
20123
if ! "$HAS_DIG" && ! "$HAS_HOST" && ! "$HAS_DRILL" && ! "$HAS_NSLOOKUP"; then
20125
20124
fatal "Neither \"dig\", \"host\", \"drill\" or \"nslookup\" is present" $ERR_DNSBIN
20126
20125
fi
20127
20126
if "$HAS_DIG"; then
20128
- if dig $DIG_R +noidnout -t a 2>&1 | grep -Eq 'Invalid option: \+noidnout|IDN support not enabled'; then
20129
- :
20130
- else
20127
+ if dig -h | grep -Eq idnout; then
20131
20128
HAS_DIG_NOIDNOUT=true
20132
20129
fi
20133
20130
fi
You can’t perform that action at this time.
0 commit comments