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()