This module contains query functions for DNS for use from Puppet.
All functions can take a optional second lambda argument that is called if the lookup returned no values. Then the result of the lambda will be used instead.
Does a DNS lookup and returns an array of addresses.
Retrieves DNS A records and returns it as an array. Each record in the array will be a IPv4 address.
Retrieves DNS AAAA records and returns it as an array. Each record in the array will be a IPv6 address.
Retrieves a DNS CNAME record and returns it as a string.
Retrieves DNS MX records and returns it as an array. Each record in the
array will be an array of hashes containing a preference
& exchange
key.
Retrieves DNS PTR records and returns it as an array of strings.
Retrieves DNS SRV records and returns it as an array. Each record in the
array will be an array of hashes containing a priority
, weight
, port
and target
key.
Retrieves DNS TXT records and returns it as an array. Each record in the array will be a array containing the strings of the TXT record.