Re: host name length

From: Randy.Dunlap
Date: Wed Dec 08 2004 - 16:18:25 EST


Andreas Steinmetz wrote:
Ulrich Drepper wrote:

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).


255 characters to be exact. The question was, however, for the hostname which I usually don't interpret as a fqdn.

So sethostname(2) sets fqdn, right?

Ulrich, do you want help on this or is it already done?

--
~Randy
-
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/