From: Thomas Ward Date: Mon, 9 Mar 2020 21:01:00 +0000 (-0400) Subject: Docstrings: Update reverse_lookup docstrings X-Git-Tag: v2.0.0rc1~337^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d38d41c2c3e77f73b96a1d792c2984fa0c013584;p=thirdparty%2Fdnspython.git Docstrings: Update reverse_lookup docstrings 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. --- diff --git a/dns/resolver.py b/dns/resolver.py index 3ecb6111..4fd02ef1 100644 --- a/dns/resolver.py +++ b/dns/resolver.py @@ -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),