Bug#105364: installer allows user to insert underscores in the hostname
On Tue, Jul 24, 2001 at 05:43:30PM +0200, Kjetil Torgrim Homme wrote:
> Matt Kraai <email@example.com> writes:
> > In order to implement this, I really need to know the answers to
> > the following questions:
> > * What encoding is used for the host name input by the user?
> > * What host name validation should be performed by dbootstrap?
> > * What encoding should be used for writing the host name?
> > The kernel treats the host name as any other character string, and
> > so doesn't appear to care about the encoding. I haven't been able
> > to find the libc source which deals with internationalized host
> > names, so I don't know what format it expects things in.
> IMHO, we should only enforce what has been standardised.
> * Only allow components matching the simple grammar in RFC 1034.
> (section 3.5)
> * Each name component is max 63 octets.
> * Total hostname length is max 255 octets.
> * No component can start with <letter><letter><hyphen><hyphen>
> (not really in the standards, but pertinent anyway)
I don't have a problem with only implementing existing standards.
At the moment, I believe that RFC 1034 compliance is enforced.
I've since discovered RFC 1123, which changes a few of the
requirements, so I'll make one more round of updates.
Given the uncertainty regarding internationalized host names, and
the fact that the boot-floppies are soon to be retired, I'm
punting on this feature.