File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18165,9 +18165,9 @@ get_aaaa_record() {
1816518165 elif "$HAS_HOST"; then
1816618166 ip6=$(filter_ip6_address $(host -t aaaa "$1" | awk '/address/ { print $NF }'))
1816718167 elif "$HAS_DRILL"; then
18168- ip6=$(filter_ip6_address $(drill aaaa "$1" | awk '/ANSWER SECTION/,/AUTHORITY SECTION/ { print $NF }' | awk '/^[0 -9]/'))
18168+ ip6=$(filter_ip6_address $(drill aaaa "$1" | awk '/ANSWER SECTION/,/AUTHORITY SECTION/ { print $NF }' | awk '/^[a-f0 -9]/'))
1816918169 elif "$HAS_DIG"; then
18170- ip6=$(filter_ip6_address $(dig $DIG_R +short +timeout=2 +tries=2 $noidnout -t aaaa "$1" 2>/dev/null | awk '/^[0 -9]/ { print $1 }'))
18170+ ip6=$(filter_ip6_address $(dig $DIG_R +short +timeout=2 +tries=2 $noidnout -t aaaa "$1" 2>/dev/null | awk '/^[a-f0 -9]/ { print $1 }'))
1817118171 elif "$HAS_NSLOOKUP"; then
1817218172 ip6=$(filter_ip6_address $(strip_lf "$(nslookup -type=aaaa "$1" 2>/dev/null | awk '/'"^${a}"'.*AAAA/ { print $NF }')"))
1817318173 fi
You can’t perform that action at this time.
0 commit comments