123module juptune.dns.encoding;
alias dnsSplitDomainName = __MARMOS_BUG__;
Helpers
Splits a domain name into labels. e.g. "abc.def.com" -> ["abc", "def", "com"].
This also performs validation to ensure that the domain name is valid for DNS.
DnsEncodingError.invalidLabelfor various reasons.
DnsEncodingError.labelTooLongif a label is longer than DNS_MAX_LABEL_LENGTH.
DnsEncodingError.domainNameTooLongif the entire domain name is longer than DNS_MAX_DOMAIN_LENGTH.
A Result