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 nikolaeff at gmail dot com  2007-07-02 20:23 -------
(In reply to comment #1)
> Such hostnames are invalid, see section 2 of RFC3696.
> For hostnames, hyphen can be only in the middle, not at the start of at the end.
> 

Well, it's true, but
1) hostnames starting with numeric value are also not valid, but can be resolved via gethostbyname() 
(i.e. ping 12345.livejournal.com);

2) We getting odd behaviour on various system. Even worse - on same machine using different tools 
(nslookup vs. ping).

-- 


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]