From owner-freebsd-stable@FreeBSD.ORG Tue Mar 25 19:53:48 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 C0A6637B401 for ; Tue, 25 Mar 2003 19:53:48 -0800 (PST) Received: from bsdi.dv.isc.org (c17249.carlnfd1.nsw.optusnet.com.au [210.49.138.109]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC24A43FA3 for ; Tue, 25 Mar 2003 19:53:47 -0800 (PST) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (drugs.dv.isc.org [192.168.191.236]) by bsdi.dv.isc.org (8.12.8/8.12.8) with ESMTP id h2Q3ribk002464; Wed, 26 Mar 2003 14:53:45 +1100 (EST) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (8.12.8/8.12.8) with ESMTP id h2Q3rXpE028440; Wed, 26 Mar 2003 14:53:33 +1100 (EST) (envelope-from marka@drugs.dv.isc.org) Message-Id: <200303260353.h2Q3rXpE028440@drugs.dv.isc.org> To: David J Duchscher From: Mark.Andrews@isc.org In-reply-to: Your message of "Tue, 25 Mar 2003 21:24:09 MDT." <6888D394-5F3A-11D7-90A2-0003930B3DA4@nostrum.com> Date: Wed, 26 Mar 2003 14:53:33 +1100 Sender: marka@isc.org X-Spam-Status: No, hits=-5.8 required=5.0 tests=IN_REP_TO,NO_REAL_NAME,QUOTED_EMAIL_TEXT 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 cc: Terry Lambert 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 03:53:49 -0000 X-List-Received-Date: Wed, 26 Mar 2003 03:53:49 -0000 > On Tuesday, March 25, 2003, at 08:46 PM, Terry Lambert wrote: > > > Marius Strom wrote: > >> I've submitted a PR for this: misc/50299 documenting the RFC > >> mis-following (is that a word?) as well as a patch for res_comp.c. > > > > Great. > > > > 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. > > > 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. > > DaveD The current implementation fits this. It handles (accepts) garbage in and only returns (generates) clean respones to the application. If the resolver died receiving underscore you would something to complain about. Currently it just filters out ALL illegal responses. Mark -- Mark Andrews, Internet Software Consortium 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews@isc.org