Browse Source

Change -debug=1 to -debug for nslookup

Debian dnsutils 1:9.11.5.P4+dfsg-5.1 errors on -debug=1

Dnsutils version 1:9.10.3.dfsg.P4-12.3+deb9u4 and version 1:9.2.1-2.woody.2
(from 2003) accept both -debug=1 and -debug so I've changed this globally.
pull/494/head
Robert de Bath 6 years ago
parent
commit
978de4bda0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      getssl

+ 3
- 3
getssl View File

@ -813,7 +813,7 @@ get_auth_dns() { # get the authoritative dns server for a domain (sets primary_n
return
fi
res=$(nslookup -debug=1 -type=soa -type=ns "$gad_d" ${gad_s})
res=$(nslookup -debug -type=soa -type=ns "$gad_d" ${gad_s})
if [[ "$(echo "$res" | grep -c "Non-authoritative")" -gt 0 ]]; then
# this is a Non-authoritative server, need to check for an authoritative one.
@ -826,9 +826,9 @@ get_auth_dns() { # get the authoritative dns server for a domain (sets primary_n
fi
if [[ -z "$gad_s" ]]; then
res=$(nslookup -debug=1 -type=soa -type=ns "$gad_d")
res=$(nslookup -debug -type=soa -type=ns "$gad_d")
else
res=$(nslookup -debug=1 -type=soa -type=ns "$gad_d" "${gad_s}")
res=$(nslookup -debug -type=soa -type=ns "$gad_d" "${gad_s}")
fi
if [[ "$(echo "$res" | grep -c "canonical name")" -gt 0 ]]; then


Loading…
Cancel
Save