Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2005 22:25:44 -0500
From:      Kevin Kinsey <kdk@daleco.biz>
To:        "Gary W. Swearingen" <garys@opusnet.com>
Cc:        questions@freebsd.org
Subject:   Re: cache-only named won't resolve "localhost"
Message-ID:  <43000B38.8040002@daleco.biz>
In-Reply-To: <4w1x4wyqkl.x4w@mail.opusnet.com>
References:  <4w1x4wyqkl.x4w@mail.opusnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43000B38.8040002>