This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4671] gethostbyname() cant resolve names starting/ending with "-"
- From: "bjorn at haxx dot se" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 20 Jan 2010 09:01:53 -0000
- Subject: [Bug libc/4671] gethostbyname() cant resolve names starting/ending with "-"
- References: <20070620171856.4671.nikolaeff@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bjorn at haxx dot se 2010-01-20 09:01 -------
"The DNS itself places only one restriction on the particular labels that can be used to identify resource
records. That one restriction relates to the length of the label and the full name. [...] Those restrictions
aside, any binary string whatever can be used as the label of any resource record."
-- RFC 2181, section 11
RFC3696, section 2 verifies this: "Any characters, or combination of bits (as octets), are permitted in
DNS names." Then it describes how the old ARPANET rules worked. But we moved beyond those
rules a long time ago. Just look at the international domain names.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4671
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.