mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #9180 from murrant/astext-dns
ignore dns errors when fetching astext
This commit is contained in:
@@ -913,7 +913,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], ' "');
|
||||
|
||||
Reference in New Issue
Block a user