This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]