From 14f7ef6b207a7440c991bababc6366424877039b Mon Sep 17 00:00:00 2001 From: Michael Kroes Date: Sun, 28 Feb 2016 21:40:47 +0100 Subject: [PATCH] Resuse internal dns query method to wrap errors --- management/status_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/status_checks.py b/management/status_checks.py index 9fc7843c..fc2e876c 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -421,7 +421,7 @@ def query_dns_ptr(qname): rr = rrset[0] if rr.rdtype != dns.rdatatype.SOA: authority = rr.target - nameserver = resolver.query(authority).rrset[0].to_text() + nameserver = query_dns(authority, "A") # Resolve the PTR record using the proper name server return query_dns(qname, "PTR", at=nameserver)