]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Docstrings: Update reverse_lookup docstrings
authorThomas Ward <teward@thomas-ward.net>
Mon, 9 Mar 2020 21:01:00 +0000 (17:01 -0400)
committerGitHub <noreply@github.com>
Mon, 9 Mar 2020 21:01:00 +0000 (17:01 -0400)
Pull docstring bits from the query function that are relevant for reverse_lookup as we're now pulling the query function's arguments in (except for rdtype and rdclass) as arguments that can be accepted.

dns/resolver.py

index 3ecb6111b5e57920ec149076ee6079dde848009d..4fd02ef1d771c5e3e89e4c6999c7de83f1d792dc 100644 (file)
@@ -1039,6 +1039,18 @@ class Resolver(object):
         tests to make sure that the entered string is in fact an IP address.
         
         *ipaddr*, a ``str``, the IP address you want to get the PTR record for.
+        
+        *tcp*, a ``bool``.  If ``True``, use TCP to make the query.
+        
+        *source*, a ``text`` or ``None``.  If not ``None``, bind to this IP
+        address when making queries.
+        
+        *raise_on_no_answer*, a ``bool``.  If ``True``, raise
+        ``dns.resolver.NoAnswer`` if there's no answer to the question.
+        
+        *source_port*, an ``int``, the port from which to send the message.
+        
+        *lifetime*, a ``float``, how many seconds a query should run before timing out.
         """
                 
         return self.query(dns.reversename.from_address(address),