Utilities for handling DNS hostnames
Check if the parameter is a valid hostname.
hostname (str or bytearray) – string to check
boolean