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: "nikolaeff at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Jul 2007 20:23:39 -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 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.