From fb557672e495ee5d6a22394cbc8c9dc711e2cb64 Mon Sep 17 00:00:00 2001 From: Thomas Ward Date: Mon, 9 Mar 2020 21:29:38 -0400 Subject: [PATCH] reverse_query: BUGFIX - ipaddr, not address! I made a mistake in the pull req and didn't catch it (OOPS!). `dns.reversename.from_address(address)` is what was in the code. Unfortunately, that causes a nice, fat `NameError: name 'address' is not defined` error. This fixes that. --- dns/resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns/resolver.py b/dns/resolver.py index d1098785..359eb9bb 100644 --- a/dns/resolver.py +++ b/dns/resolver.py @@ -1042,7 +1042,7 @@ class Resolver(object): rdtype and rdclass are also supported by this function. """ - return self.query(dns.reversename.from_address(address), + return self.query(dns.reversename.from_address(ipaddr), rdtype=dns.rdatatype.PTR, rdclass=dns.rdataclass.IN, *args, **kwargs) -- 2.47.3