Le 21/01/2020 à 09:11, Ondřej Surý a écrit : >> A domain name is a sequence of labels separated by dots, such as >> foo.example. Each label may contain any bytes. The length of each >> label may not exceed 63 charactes. The total length of a domain name >> is limited to 253 (byte representation is 255), but other protocols >> (such as SMTP) may apply even smaller limits. A domain name label is >> case preserving, comparison is done in a case insensitive manner. > > that is extremely bad package description, it describes domain name, > and not what the package does and why it’s useful.
You are right. What about the following? This module provides an abstract type for domain names, as defined by RFC 1035. It provides useful functions that operate on domain names while guaranteeing invariants such as the length limit. Cheers, -- Stéphane