From owner-freebsd-bugs@FreeBSD.ORG Mon Jul 7 09:50:14 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9FEEE37B404 for ; Mon, 7 Jul 2003 09:50:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC91943FA3 for ; Mon, 7 Jul 2003 09:50:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h67GoCUp023435 for ; Mon, 7 Jul 2003 09:50:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h67GoCXT023434; Mon, 7 Jul 2003 09:50:12 -0700 (PDT) Resent-Date: Mon, 7 Jul 2003 09:50:12 -0700 (PDT) Resent-Message-Id: <200307071650.h67GoCXT023434@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jonathan Lennox Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D86CA37B401 for ; Mon, 7 Jul 2003 09:45:37 -0700 (PDT) Received: from cs.columbia.edu (cs.columbia.edu [128.59.16.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1597B43F3F for ; Mon, 7 Jul 2003 09:45:37 -0700 (PDT) (envelope-from lennox@cs.columbia.edu) Received: from conrail.cs.columbia.edu (conrail.cs.columbia.edu [128.59.19.147]) by cs.columbia.edu (8.12.9/8.12.9) with ESMTP id h67GjZkN024013 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Mon, 7 Jul 2003 12:45:36 -0400 (EDT) Received: from conrail.cs.columbia.edu (localhost [127.0.0.1]) h67GjZwF041983 for ; Mon, 7 Jul 2003 12:45:35 -0400 (EDT) (envelope-from lennox@conrail.cs.columbia.edu) Received: (from lennox@localhost) by conrail.cs.columbia.edu (8.12.8p1/8.12.8/Submit) id h67GjYaC041982; Mon, 7 Jul 2003 12:45:34 -0400 (EDT) Message-Id: <200307071645.h67GjYaC041982@conrail.cs.columbia.edu> Date: Mon, 7 Jul 2003 12:45:34 -0400 (EDT) From: Jonathan Lennox To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/54189: DNS resolver should resolve hostnames with underscores X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jonathan Lennox List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 16:50:15 -0000 >Number: 54189 >Category: misc >Synopsis: DNS resolver should resolve hostnames with underscores >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 07 09:50:12 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Jonathan Lennox >Release: FreeBSD 4.8-RELEASE i386 >Organization: Columbia University >Environment: System: FreeBSD conrail.cs.columbia.edu 4.8-RELEASE FreeBSD 4.8-RELEASE #4: Tue Apr 15 15:28:33 EDT 2003 lennox@conrail.cs.columbia.edu:/usr/obj/usr/src/sys/CONRAIL i386 >Description: FreeBSD's gethostbyname() and getaddrinfo() functions refuse to resolve hostnames with underscores in them. They return the error codes NO_RECOVERY and EAI_FAIL respectively. Hostnames with underscores are ill-formed according to the DNS standards. However, in the real Internet, hosts with underscores in their names are reasonably common, and in many cases are not accessable through other names. For example, the case that inspired me to file this PR: FreeBSD users are unable to read the web log of the "Baghdad Blogger" Salam Pax, which is at . Linux and Windows users have no such difficulty. I note Jon Postel's maxim "Be liberal in what you accept, and conservative in what you send." (Note: this PR is in some sense a re-submission of PR misc/29388, but as a change-request, not a sw-bug.) >How-To-Repeat: Type "http://dear_raed.blogspot.com" into Mozilla running on FreeBSD. Compare with Mozilla on other systems. >Fix: Import BIND code from other Unix systems? >Release-Note: >Audit-Trail: >Unformatted: