Re: host name length

From: Jan Engelhardt
Date: Mon Dec 06 2004 - 03:36:54 EST


>| POSIX nowadays contains
>|
>| _POSIX_HOST_NAME_MAX
>| and
>| HOST_NAME_MAX
>|
>| for programs to use to learn about the maximum host name length which is
>| allowed. _POSIX_HOST_NAME_MAX is the standard-required minimum maximum
>| and the value must be 256.
[...]

Please also consider the DNS FAQ. If a (DNS) hostname cannot be longer than X
chars (I don't have the number handy ATM), HOST_NAME_MAX should not be any
greater than X also.



Jan Engelhardt
--
ENOSPC
-
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/