]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
reverse_query: BUGFIX - ipaddr, not address! 419/head
authorThomas Ward <teward@thomas-ward.net>
Tue, 10 Mar 2020 01:29:38 +0000 (21:29 -0400)
committerGitHub <noreply@github.com>
Tue, 10 Mar 2020 01:29:38 +0000 (21:29 -0400)
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

index d1098785a010c90f6f8f32fc98f5081fff3f9c12..359eb9bbf90c727c277e051f223d0c3f59f19479 100644 (file)
@@ -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)