From 3c2ea924ea5ad4f5be4c5504009b9c7c147d82d3 Mon Sep 17 00:00:00 2001 From: flipglif1 <37122664+flipglif1@users.noreply.github.com> Date: Thu, 11 Oct 2018 17:51:55 -0700 Subject: [PATCH] Update dns_check.py --- dns/plugins/dns_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/plugins/dns_check.py b/dns/plugins/dns_check.py index c64b3ff..6cfecb8 100644 --- a/dns/plugins/dns_check.py +++ b/dns/plugins/dns_check.py @@ -26,7 +26,7 @@ class DNSCheck(Plugin): def collect(self, _): - hostname = self.get('hostname') + hostname = self.get('record', '') record_type = self.get('record_type', 'A') resolver = dns.resolver.Resolver()