clarified dig module uses dnspython

pull/31020/head
Brian Coca 7 years ago
parent bb874e5029
commit 54d7c384b6

@ -8,9 +8,9 @@ DOCUMENTATION = """
lookup: dig lookup: dig
author: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com> author: Jan-Piet Mens (@jpmens) <jpmens(at)gmail.com>
version_added: "1.9" version_added: "1.9"
short_description: use 'dig' to query DNS short_description: query DNS using the dnspython library
requirements: requirements:
- dig (CLI utility) - dnspython (python library, http://www.dnspython.org/)
description: test description: test
- The dig lookup runs queries against DNS servers to retrieve DNS records for a specific name (FQDN - fully qualified domain name). - The dig lookup runs queries against DNS servers to retrieve DNS records for a specific name (FQDN - fully qualified domain name).
It is possible to lookup any DNS record in this manner. It is possible to lookup any DNS record in this manner.
@ -199,7 +199,7 @@ class LookupModule(LookupBase):
''' '''
if HAVE_DNS is False: if HAVE_DNS is False:
raise AnsibleError("Can't LOOKUP(dig): module dns.resolver is not installed") raise AnsibleError("The dig lookup requires the python 'dnspython' library and it is not installed")
# Create Resolver object so that we can set NS if necessary # Create Resolver object so that we can set NS if necessary
myres = dns.resolver.Resolver(configure=True) myres = dns.resolver.Resolver(configure=True)

Loading…
Cancel
Save