From owner-freebsd-questions@FreeBSD.ORG Mon Aug 15 00:46:21 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 DF6D616A41F for ; Mon, 15 Aug 2005 00:46:21 +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 246C943D48 for ; Mon, 15 Aug 2005 00:46:21 +0000 (GMT) (envelope-from garys@opusnet.com) Received: from localhost.localhost [70.98.246.232] by opusnet.com with ESMTP (SMTPD32-8.05) id A5D9D1B80146; Sun, 14 Aug 2005 17:46:17 -0700 Received: from localhost.localhost (localhost.localhost [127.0.0.1]) by localhost.localhost (8.13.3/8.13.3) with ESMTP id j7F0kuBs013242 for ; Sun, 14 Aug 2005 17:46:56 -0700 (PDT) (envelope-from garys@opusnet.com) Received: (from jojo@localhost) by localhost.localhost (8.13.3/8.13.3/Submit) id j7F0koQw013241; Sun, 14 Aug 2005 17:46:50 -0700 (PDT) (envelope-from garys@opusnet.com) To: questions@freebsd.org From: garys@opusnet.com (Gary W. Swearingen) Date: Sun, 14 Aug 2005 17:46:50 -0700 Message-ID: <4w1x4wyqkl.x4w@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: Subject: 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 00:46:22 -0000 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.