Date: Sun, 14 Aug 2005 17:46:50 -0700 From: garys@opusnet.com (Gary W. Swearingen) To: questions@freebsd.org Subject: cache-only named won't resolve "localhost" Message-ID: <4w1x4wyqkl.x4w@mail.opusnet.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4w1x4wyqkl.x4w>