replacing the use of gethostbyname with getaddrinfo in order to support ipv6MHA ipv6 only support
using the appropriate format to support IPv6 and IPv4 (Brackets were added to ALL scp commands and DBD-MySQL connections, which work with hostnames, ipv4 and ipv6 addresses.)
# - DBD-MySQL expects [::] format
# - scp requires [::] format
# - ssh requires :: format
# - mysql tools require :: format
This patch brings MHA IPv6-only support by