function isValidHostname(hostname): boolean;
Validate hostname.
string
The hostname to validate.
boolean
True if the hostname is valid, false otherwise.