# Functions
FirstLabel returns the first DNS label of hostname.
HasSuffix reports whether the provided name ends with the component(s) in suffix, ignoring any trailing or leading dots.
NumLabels returns the number of DNS labels in hostname.
SanitizeHostname turns hostname into a valid name label according to RFC 1035.
SanitizeLabel takes a string intended to be a DNS name label and turns it into a valid name label according to RFC 1035.
No description provided by the author
TrimCommonSuffixes returns hostname with some common suffixes removed.
TrimSuffix trims any trailing dots from a name and removes the suffix ending if present.
ValidHostname checks if a string is a valid hostname.
ValidLabel reports whether label is a valid DNS label.
# Type aliases
A FQDN is a fully-qualified DNS name or name suffix.