From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 20:09:40 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B826316A41F for ; Mon, 15 Aug 2005 20:09:40 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from opusnet.com (mail.opusnet.com [209.210.200.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id D70CA43D62 for ; Mon, 15 Aug 2005 20:09:36 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.246.232] by opusnet.com with ESMTP (SMTPD32-8.05) id A67CA6EA00E2; Mon, 15 Aug 2005 13:09:32 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j7FKAGfV030172; Mon, 15 Aug 2005 13:10:16 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j7FKABCd030171; Mon, 15 Aug 2005 13:10:11 -0700 (PDT) (envelope-from garys@opusnet.com) To: Lowell Gilbert References: <4w1x4wyqkl.x4w@mail.opusnet.com> <43000B38.8040002@daleco.biz> <448xz36nz1.fsf@be-well.ilk.org> From: garys@opusnet.com (Gary W. Swearingen) Date: Mon, 15 Aug 2005 13:10:11 -0700 In-Reply-To: <448xz36nz1.fsf@be-well.ilk.org> (Lowell Gilbert's message of "15 Aug 2005 14:42:42 -0400") Message-ID: <9r4q9rx8po.q9r@mail.opusnet.com> User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: questions@freebsd.org Subject: Re: cache-only named won't resolve "localhost" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2005 20:09:40 -0000 Lowell Gilbert writes: > Of course it won't work for nslookup(1); it's not supposed to. > nslookup is specifically intended for querying a name server. The > documentation for host(1) isn't as clear on the subject, but my > reading of it seems to indicate the same thing. Well that sure explains something. But I was also looking at the "bind" docs thinking it should be able to read /etc/hosts or call the name server host's resolver ("gethostbyname", etc.), but didn't find anything, I suppose because someone thinks it is a bad idea since the resolver library is supposed to look at both databases. I'm still wondering if I should be declaring a forward zone for "localhost" or "localhost.localhost"; it seems kinda strange that the script would set up a reverse for it, but say nothing about the forward. I'm also wondering now what "host"-type command just queries the resolver. But I guess "ping" works well enough. > So why it isn't > working for mozilla is the only anomaly you are seeing. What is the > syntax you are using for pointing mozilla at your localhost, and what > are the precise results? I've tried: localhost/index.html localhost.localhost/index.html (getting desparate:) localhost:80/index.html http://localhost/index.html This worked immediately: 127.0.0.1/index.html The bad Mozilla results are a status line saying "Connecting to ..." and, IIRC, I saw a twirly thing until it times out after several minutes, with no error message. I didn't see anything related to DNS in "preferences".