From ec1b6060eb78ea0974ee25770e004f7c3cc775bb Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 10 Sep 2018 21:40:41 -0500 Subject: [PATCH] ignore dns errors when fetching astext --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 5d4e94fc03..dfb6b187a5 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -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], ' "');