[Bug libc/4671] gethostbyname() cant resolve names starting/ending with "-"

bjorn at haxx dot se sourceware-bugzilla@sourceware.org
Wed Jan 20 09:02:00 GMT 2010


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



More information about the Glibc-bugs mailing list