Module: Puppet::Parser::Functions

Defined in:
lib/puppet/parser/functions/options_lookup.rb,
lib/puppet/parser/functions/get_module_path.rb,
lib/puppet/parser/functions/get_class_args.rb,
lib/puppet/parser/functions/params_lookup.rb,
lib/puppet/parser/functions/get_magicvar.rb,
lib/puppet/parser/functions/bool2ensure.rb,
lib/puppet/parser/functions/nslookup.rb

Overview

nslookup.rb

This fuction looks up the ip address of a hostname.

Params:

* Hostname: (string) The hostname to lookup
* Type: (string) The DNS type to lookup. Optional. Default: 'AAAA'

Returns: an array with the ip addresses that belong to this hostname

Dolf Schimmel - Freeaqingme <dolf@dolfschimmel.nl>