Allow hostnames to contain and start with digits

This is allowed by RFC 1123.
Unless specified LDAP is case insensitive
Fix broken Fedora support