3.9.6. Host Previous topic Parent topic Child topic Next topic

This specifies the LDAP host names to connect to. The default value is localhost. Special formatting characters are permitted. Multiple space separated host names can be specified and Net::LDAP chooses the first available one. If Host begins with ipv6: the subsequent host names are interpreted as IPv6 addresses where possible, and Net::LDAP uses IPv6 to connect to the LDAP server. IPv6 may require IO::Socket::INET6, Socket6 or other IPv6 specific Perl modules depending on your Perl version.
Here are 2 examples of using Host:
# Always connect to UMICH
Host ldap.itd.umich.edu
# Connect to first available host:
Host ldaphost1 ldaphost2 ldaphost3