allow hostnames containing a dot and hyphens, but disallow them at start and end