puppet-dnsquery icon indicating copy to clipboard operation
puppet-dnsquery copied to clipboard

dnsquery fail when resolution fails

Open aborrero opened this issue 2 years ago • 0 comments

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.

aborrero avatar Jul 27 '23 12:07 aborrero