From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30745 invoked by alias); 7 Mar 2009 13:39:01 -0000 Received: (qmail 30714 invoked by uid 48); 7 Mar 2009 13:38:49 -0000 Date: Sat, 07 Mar 2009 13:39:00 -0000 Message-ID: <20090307133849.30713.qmail@sourceware.org> From: "alexeyten+deb 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: 2009-03/txt/msg00014.txt.bz2 ------- Additional Comments From alexeyten+deb at gmail dot com 2009-03-07 13:38 ------- https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/144431 This bug report is valid. The RFC does not prohibit labels that don't start with a letter; it merely recommends against them. The definition of "label" mentioned above is part of a guideline introduced with this text: "The following syntax will result in fewer problems with many applications that use domain names (e.g., mail, TELNET)." Points in favor of supporting domain names that don't necessarily follow those guidelines: 1. There are actual domains out on the Internet running web sites with such domain names (several blogs at blogspot.com spring to mind) 2. Such domains resolve on other OSes (not just Windows, but also OS X). 3. Direct DNS queries (dig, host, nslookup) on Linux work fine with such names. 4. Even gethostbyname() on Linux works for such names when they're in the local /etc/hosts file. Possibly in NIS maps as well. Point 4 is especially telling; I don't see any reason for gethostbyname() to introduce a restriction between two interfaces when that both operate correctly without the restriction. Especially not a restriction that prevents access to actual web sites. Telling users that "The owner of that site shouldn't have named it that" is not helpful. -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | 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.