From owner-freebsd-stable@FreeBSD.ORG Tue Mar 25 20:33:55 2003 Return-Path: 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 CD3DA37B409 for ; Tue, 25 Mar 2003 20:33:55 -0800 (PST) Received: from fe3.cox-internet.com (fe3-cox.cox-internet.com [66.76.2.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB12143FBF for ; Tue, 25 Mar 2003 20:33:54 -0800 (PST) (envelope-from daved@nostrum.com) Received: from nostrum.com ([208.180.29.144]) by fe3.cox-internet.com 9a2f9096933fa391a6c2fc942f8b01bd) with ESMTP id <20030326043353.SVOU20598.fe3@nostrum.com>; Tue, 25 Mar 2003 22:33:53 -0600 Date: Tue, 25 Mar 2003 22:33:57 -0600 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) To: Terry Lambert From: David J Duchscher In-Reply-To: <3E811F46.17DAB125@mindspring.com> Message-Id: <289B7152-5F44-11D7-9839-0003930B3DA4@nostrum.com> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) X-Spam-Status: No, hits=-21.6 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REPLY_WITH_QUOTES,USER_AGENT_APPLEMAIL autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: stable@FreeBSD.ORG Subject: Re: Resolver Issues (non valid hostname characters) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 04:33:57 -0000 X-List-Received-Date: Wed, 26 Mar 2003 04:33:57 -0000 On Tuesday, March 25, 2003, at 09:32 PM, Terry Lambert wrote: > David J Duchscher wrote: >>> If this is committed before RFC-952 is updated, FreeBSD users >>> can now define host names that break other machines on the net >>> which are strictly conformant to RFC-952. >> >> Which will just make us behave like rest of the world. I have tested >> resolvers on Solaris, Windows, MacOS X, MacOS 9, IRIX, Linux, AIX. >> They all will resolve a name with an underscore character. Only the >> *BSD boxes fail because of the check. > > Actually, anyone who took the original ISC code, or the FreeBSD code, > will end up having problems. Including AIX, Solaris, MacOS X. Unless they have modified the code which all the above OSes seem to have done since they do not show the behavior. >>> What is the first maxim of protocol design? >>> >>> "Be generous in what you accept, strict in what you generate". >> >> Which is why I would argue that the patch should be committed, maybe >> with an option to enable it. We are talking about the resolver, not a >> DNS or hostname server. The resolver should resolve the name, be >> generous. It just depends at what level you apply the maxim. The >> check should be in the DNS server not in the resolver IMHO. > > You apply the maxim to each interface, seperately. For example, > FreeBSD should not allow the configuration of host names with > "_" in them, but it should, perhaps, permit them to be looked up. I can agree with this statement. Unfortunately, FreeBSD doesn't do this in many ways. Example, you can set a hostname with a underscore in it. You can even use an underscore in the name in the host file and everything will work. You just can't look up the name via DNS. DaveD