Requirements for hostname are as follow:
ASCII letters 'a' through 'z' (case-insensitive), the digits '0' through '9'
and the hyphen. Hostname labels cannot begin or end with a hyphen. No other
symbols, punctuation characters, or blank spaces are permitted. The length is
between 1 and 63 characters. Refer to RFC1034, 1035 and 2181.
Refer to bug 193054 which fixed a similar problem in another package
I have performed a new installation in a VirtualBox using Intrepid. The
installer program checks the hostname according to the rules above. The
text of the error message, when an invalid hostname is entered, is
wrong. It states that "the length should be between 2 and 63."
RFC 1034 states that "Each node has a label, which is zero to 63 octets
in length." and that "One label is reserved, and that the null (i.e.,
zero length) label used for the root." The installer allows me to set a
hostname with just one letter, which is correct.
Thanks for reporting this bug. Since this bug has enough information
provided for a developer to begin work, I'm going to mark it as
confirmed and let them handle it from here. Thanks for taking the time
to make Ubuntu better!
** Changed in: hostname (Ubuntu)
Status: New => Confirmed
--
/bin/hostname complains about but still sets invalid hostname
https://bugs.launchpad.net/bugs/52335
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs