Trac Ticket #46 - (additional 2) setup-ds-admin.pl does not like ipv6 only hostnames
https://fedorahosted.org/389/ticket/46
Fix description:
1) When Socket6 is used, if the same FQDN appears twice in
/etc/hosts (e.g., localhost.localdomain for 127.0.0.1 and
::1), the result from getaddrinfo was not correctly shifted.
2) perl require takes package name. In the commit 850005499bd9-
2c5b9b0027f944fcd33633c8db46, a tag ':addrinfo" was mistakenly
passed and it was ignored. This patch checks the version of
Socket. If it is greater than 2.000, getaddrinfo in the
Socket module is used. Otherwise, it falls back to Socket6.