- Fix dns_lookup() crash when trying to lookup unknown name.
This commit is contained in:
@@ -239,7 +239,7 @@ dns_lookup()
|
||||
case ${dl_type}
|
||||
in
|
||||
"A")
|
||||
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter)"
|
||||
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter || true)"
|
||||
;;
|
||||
|
||||
"PTR")
|
||||
|
||||
Reference in New Issue
Block a user