A Python validator for Internet hostnames¶
Not all valid DNS names are valid hostnames, although all valid hostnames are valid DNS names.
Along with a hostname.Hostname
class,
this hostname package provides
hostname.is_hostname()
boolean function, which performs syntactic validation of candidate hostname.
This validation only on the form of the candidate hostname. It does not check whether the name exists in the DNS system.