puppet-dnsquery
puppet-dnsquery copied to clipboard
dnsquery fail when resolution fails
Dear maintainer,
thanks for your work with this module, really appreciated.
I have been using the dnsquery:: family of functions lately and noticed a common usage pattern:
$result = dnsquery::a('non-existent-fqdn') || { fail('no dns') }
This is, fail if the function fails to resolve anything.
I wonder if there could be a way to introduce this behavior into the function, maybe with a flag or something.