From owner-freebsd-stable@FreeBSD.ORG Tue Sep 13 01:21:08 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C769616A41F for ; Tue, 13 Sep 2005 01:21:08 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6887043D45 for ; Tue, 13 Sep 2005 01:21:08 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id B51FC5D2D; Mon, 12 Sep 2005 21:21:07 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 98242-01; Mon, 12 Sep 2005 21:21:06 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-79-217.ny325.east.verizon.net [68.161.79.217]) by pi.codefab.com (Postfix) with ESMTP id 008D55C34; Mon, 12 Sep 2005 21:21:05 -0400 (EDT) Message-ID: <43262987.8030703@mac.com> Date: Mon, 12 Sep 2005 21:21:11 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050801 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Torfinn Ingolfsen References: <20050913014339.5c91e351.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20050913014339.5c91e351.torfinn.ingolfsen@broadpark.no> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-stable@freebsd.org Subject: Re: Oldie: underscores in 'names ... on -stable? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 01:21:08 -0000 Torfinn Ingolfsen wrote: [ ... ] > If I try it with ping in a shell (on FreeBSD), it also fails. > However both 'host' and 'nslookup' happily foes a lookup of that name. > so it seems that our resolver (on FreeBSD) is to blame. > > I have seen a few old (ok, from 2003) mailing list posts, which seems to > indicate that the official rules says that 'underscores are not allowed > in hostnames'. Is this still the case? Yes, underscores are not valid characters for hostnames, per RFC 822 and others. The underscore was not permitted because it is easily confusable with a hyphen or minus sign, BTW. > If so, why is FreeBSD in rwo minds about it (nslookup and host working, > resolver not)? nslookup, dig, and so forth perform DNS queries directly, bypassing the system resolver (and flat files like /etc/hosts), and do not perform sanity checking of the results because these tools are intended for debugging DNS problems. -- -Chuck