From owner-freebsd-stable@FreeBSD.ORG Thu Mar 27 08:07:22 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 2378F37B401 for ; Thu, 27 Mar 2003 08:07:22 -0800 (PST) Received: from tamu-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8532843F85 for ; Thu, 27 Mar 2003 08:07:21 -0800 (PST) (envelope-from daved@nostrum.com) Received: from nostrum.com (dyna-4102.vpn.tamu.edu [172.16.48.6]) by tamu-relay.tamu.edu (8.12.8/8.12.8) with ESMTP id h2RG78oS026916; Thu, 27 Mar 2003 10:07:09 -0600 (CST) Date: Thu, 27 Mar 2003 10:07:12 -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: <3E8226DC.9B005E01@mindspring.com> Message-Id: <2B965AA0-606E-11D7-80C5-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: Thu, 27 Mar 2003 16:07:23 -0000 On Wednesday, March 26, 2003, at 04:17 PM, Terry Lambert wrote: > David J Duchscher wrote: >> 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. Is that all, why didn't you say so in the first place. When someone says 100% accuracy, it pretty much has the meaning to me that you are not going succeed because you will never meet their definition of 100%. DaveD