Handle long hostnames