From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28865 invoked by alias); 2 Jul 2007 20:23:51 -0000 Received: (qmail 28842 invoked by uid 48); 2 Jul 2007 20:23:39 -0000 Date: Mon, 02 Jul 2007 20:23:00 -0000 Message-ID: <20070702202339.28841.qmail@sourceware.org> From: "nikolaeff at gmail dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20070620171856.4671.nikolaeff@gmail.com> References: <20070620171856.4671.nikolaeff@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/4671] gethostbyname() cant resolve names starting/ending with "-" X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00010.txt.bz2 ------- 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.