From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 03:25:53 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 5482916A41F for ; Mon, 15 Aug 2005 03:25:53 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2BBC43D45 for ; Mon, 15 Aug 2005 03:25:52 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.1/8.13.1) with ESMTP id j7F3PnSs065073; Sun, 14 Aug 2005 22:25:50 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <43000B38.8040002@daleco.biz> Date: Sun, 14 Aug 2005 22:25:44 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050709 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Gary W. Swearingen" References: <4w1x4wyqkl.x4w@mail.opusnet.com> In-Reply-To: <4w1x4wyqkl.x4w@mail.opusnet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 03:25:53 -0000 Gary W. Swearingen wrote: >I think I followed the bind manual and poked around /var/named and it >has been working OK for a few weeks until I pointed my browser to >"localhost" and then I tried "host localhost". It can resolve >"127.0.0.1" back to "localhost.localhost." fine, but if I try >my name "localhost" or "localhost.localhost", I get this: > ";; connection timed out; no servers could be reached" >(at least until I tried it just now while on-line, when it >works OK, resolving my modem/router's localhost, I suppose). > >/etc/hosts: > ::1 localhost.localhost localhost > 127.0.0.1 localhost.localhost localhost > 10.0.0.4 localhost.localhost localhost > >/etc/hosts.conf: > # Auto-generated from nsswitch.conf, do not edit > hosts > bind > >/etc/resolv.conf (same with this file missing): > nameserver 127.0.0.1 > >I can "ping localhost" OK. > >I thought that "host" should use the same stub resolver as "ping" >before trying "bind". > >Can I not use "/etc/hosts" with a cache-only named? > >Must I have an authoritive zone for "localhost"? > >Or what? > >Thanks. > > Did you `sh /var/named/etc/namedb/make-localhost` ? Or, maybe I'm just not catching on.... :-( Kevin Kinsey