static ParsedHost validateHostImpl ( HostName fromHost ) throws HostNameException { final String str = fromHost . toString ( ) ; HostNameParameters validationOptions = fromHost . getValidationOptions ( ) ; return validateHost ( fromHost , str , validationOptions ) ; }
So we will follow rfc 1035 and in addition allow the underscore .