Re: host name length

From: Ulrich Drepper
Date: Mon Dec 06 2004 - 14:28:38 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andreas Steinmetz wrote:

> 63 characters per label (=hostname) as to:

A "label" is only a part of the fqdn:

<domain> ::= <subdomain> | " "

<subdomain> ::= <label> | <subdomain> "." <label>

<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]


Yes, each label can only have 63 bytes, but the entire fqdn can be
longer, much longer. And the hostname stored with sethostname() should
be the fqdn of the machine, not just one lalbel (in DNS speak).

- --
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFBtLIQ2ijCOnn/RHQRAiqhAJsH2+QD8oI8O+/tRmg/+uHXlGAAIACdF9D1
qh0Lqh7/OCp20LI34eBPE+I=
=DQ59
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/