From owner-freebsd-stable@FreeBSD.ORG Wed Mar 26 14:18:43 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 4310937B404 for ; Wed, 26 Mar 2003 14:18:43 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5D0343F85 for ; Wed, 26 Mar 2003 14:18:42 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0166.cvx22-bradley.dialup.earthlink.net ([209.179.198.166] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18yJE7-0001lx-00; Wed, 26 Mar 2003 14:18:32 -0800 Message-ID: <3E8226DC.9B005E01@mindspring.com> Date: Wed, 26 Mar 2003 14:17:00 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David J Duchscher References: <2F60240B-5FBD-11D7-8B57-0003930B3DA4@nostrum.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4c0008b0479c357ae299f899be8c45772350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Spam-Status: No, hits=-21.1 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT, RCVD_IN_OSIRUSOFT_COM,REFERENCES,REPLY_WITH_QUOTES 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 22:18:44 -0000 David J Duchscher wrote: > > I would like to see a program, with source code, that can > > determine, with 100% accuracy, whether or not "_" is allowed, > > and prints out either: > > > > This system supports _, in violation of RFC-952. > > > > Or: > > > > This system complies with RFC-952. > > > > Then I would like to see the output of this program run on the > > systems, other than Linux, which you claim violate RFC-952. You > > can include Linux, if you want, to, for comparison purposes. > > Since I don't believe I can create such a program to your specification, > I guess you win. All I can say is that gethostbyname will return host > names with underscore character on the those operating systems. I think you can. You can write a program which looks up the IP of "demo_host" in some domain under your own control, in which you have created the record for "demo_host" with an IP address of 1.1.1.1. Then you run the program, and it does a forward lookup on the name, and prints the first message if it gets "1.1.1.1", and prints the second if it gets and error. I would do this for you, but since I believe all hosts I own comply with RFC-952, I am unable to create the DNS record for testing. For bonus points, use a free IP address in your addres block, instead of 1.1.1.1, and, if the lookup is successful, do a reverse lookup, too, and make sure both gethostbyname() and gethostbyaddr() work the way you say they work. -- Terry