DNS query functions for Puppet