HostName

Validates that the given value is a valid host name

val domainNameField = HostnameValidable(
    "Invalid domain name"
)

According to RFC 2606, top-level domains (TLD) : .example, .invalid, .localhost, and .test are reserved and that’s why hostnames containing them are not considered valid.