summaryrefslogtreecommitdiff
path: root/dns/resolver.py
diff options
context:
space:
mode:
authorThomas Ward <teward@thomas-ward.net>2020-03-09 17:01:00 -0400
committerGitHub <noreply@github.com>2020-03-09 17:01:00 -0400
commitd38d41c2c3e77f73b96a1d792c2984fa0c013584 (patch)
tree61e292449fe374cab3191bff96477048c0da9efc /dns/resolver.py
parentc0126bc8982ef167a3f540593b7c29bb19507114 (diff)
downloaddnspython-d38d41c2c3e77f73b96a1d792c2984fa0c013584.tar.gz
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.
Diffstat (limited to 'dns/resolver.py')
-rw-r--r--dns/resolver.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/dns/resolver.py b/dns/resolver.py
index 3ecb611..4fd02ef 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),