From owner-freebsd-arch@FreeBSD.ORG Sat Mar 29 18:06:03 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11BCC37B401 for ; Sat, 29 Mar 2003 18:06:03 -0800 (PST) Received: from whizzo.transsys.com (whizzo.TransSys.COM [144.202.42.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D98A43FBF for ; Sat, 29 Mar 2003 18:06:02 -0800 (PST) (envelope-from louie@whizzo.transsys.com) Received: from whizzo.transsys.com (#6@localhost [127.0.0.1]) by whizzo.transsys.com (8.12.8/8.12.7) with ESMTP id h2U25vDN037209; Sat, 29 Mar 2003 21:05:57 -0500 (EST) (envelope-from louie@whizzo.transsys.com) Message-Id: <200303300205.h2U25vDN037209@whizzo.transsys.com> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Terry Lambert X-Image-URL: http://www.transsys.com/louie/images/louie-mail.jpg From: "Louis A. Mamakos" References: <3E864AD1.6C1C3656@mindspring.com> In-reply-to: Your message of "Sat, 29 Mar 2003 17:39:29 PST." <3E864AD1.6C1C3656@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Sat, 29 Mar 2003 21:05:57 -0500 Sender: louie@TransSys.COM cc: arch@freebsd.org cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Subject: Re: Allow underscores in DNS names X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 02:06:04 -0000 > Dag-Erling Sm=F8rgrav wrote: > > The attached patch, inspired by a discussion on -STABLE, modifies our= > > resolver library to allow underscores in host names, by classifying > > the underscore as a hyphen character. Even though RFC952 forbids > > them, underscores are becoming increasingly common in DNS, and they > > are sometimes used for mechanisms (such as Microsoft's automatic prox= y > > configuration scheme) which we might want to support in FreeBSD. > = > = > There was a better patch that made it an option in resolv.conf, > rather than turning it on all the time. This is great, except that you'd don't need to have a resolv.conf on your system at all; the resolver will default to using a local caching nameserver. > FreeBSD should be standards compliant, by default, and take work > to make it possible to give bogus data to other hosts on the > Internet who can not handle "_" or other characters because they > *are* standars compliant. Since this is a resolver option, you're not handing out names to other hosts using the DNS infrastructure. > "Be conservative in what you send." And liberal in what you receive, which is exactly what modifing the resolver to not cause gethostbyname() and it's ilk to barf on these types of names. There are lots of things in ancient RFCs which probably do not make as much sense these days as they once did. If there is a security issue in applications, they should get fixed regardless. All this heartburn over what the gethostbyname() library function chooses to believe from the DNS still doesn't address getting hostnames out of NIS or /etc/hosts. louie