add support for ipv6 hostnames