Non-existent RR returns empty string (#40680)
This commit is contained in:
parent
62c05033d6
commit
bd35069495
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ class LookupModule(LookupBase):
|
|||
string = 'NXDOMAIN'
|
||||
except dns.resolver.Timeout:
|
||||
string = ''
|
||||
except dns.resolver.NoAnswer:
|
||||
string = ''
|
||||
except DNSException as e:
|
||||
raise AnsibleError("dns.resolver unhandled exception %s" % to_native(e))
|
||||
|
||||
|
|
Loading…
Reference in a new issue