ignore dns errors when fetching astext

This commit is contained in:
Tony Murray
2018-09-10 21:40:41 -05:00
parent 06a7cb2412
commit ec1b6060eb

View File

@@ -974,7 +974,7 @@ function get_astext($asn)
return $cache['astext'][$asn];
}
$result = dns_get_record("AS$asn.asn.cymru.com", DNS_TXT);
$result = @dns_get_record("AS$asn.asn.cymru.com", DNS_TXT);
if (!empty($result[0]['txt'])) {
$txt = explode('|', $result[0]['txt']);
$result = trim($txt[4], ' "');