Non-existent RR returns empty string (#40680)

This commit is contained in:
spike77453 2018-11-29 15:58:16 +01:00 committed by John R Barker
parent 62c05033d6
commit bd35069495

View file

@ -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))