From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 18:42:45 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 72EC716A41F for ; Mon, 15 Aug 2005 18:42:45 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail21.sea5.speakeasy.net (mail21.sea5.speakeasy.net [69.17.117.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24ECE43D48 for ; Mon, 15 Aug 2005 18:42:44 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 879 invoked from network); 15 Aug 2005 18:42:44 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail21.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 15 Aug 2005 18:42:44 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id EA65E36; Mon, 15 Aug 2005 14:42:42 -0400 (EDT) Sender: lowell@be-well.ilk.org To: garys@opusnet.com (Gary W. Swearingen) References: <4w1x4wyqkl.x4w@mail.opusnet.com> <43000B38.8040002@daleco.biz> From: Lowell Gilbert Date: 15 Aug 2005 14:42:42 -0400 In-Reply-To: Message-ID: <448xz36nz1.fsf@be-well.ilk.org> Lines: 23 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 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 18:42:45 -0000 garys@opusnet.com (Gary W. Swearingen) writes: > Kevin Kinsey writes: > > > Did you `sh /var/named/etc/namedb/make-localhost` ? > > Yup, but that only handles the reverse translation (which works OK) > and, of course, doesn't handle other stuff I might have in "/etc/hosts". > > I also have in /etc/nsswitch.conf: > hosts: files dns > > so I'd think domain resolution should look in /etc/hosts before > even checking my cache-only named. Which it seems to do for "ping", > but not for "host", "nslookup", or "mozilla". 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. 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?