add support for dashes in hostnames