This module contains query functions for DNS for use from Puppet.
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 [preference, exchange] arrays. Second argument is optional and can be either 'preference' or 'exchange', if supplied an array of only those elements is returned.
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 [priority, weight, port, target] arrays. Second argument is optional and can be either 'priority', 'weight', 'port' or 'target', if supplied an array of only those elements is returned.
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.