cache-only named won't resolve "localhost"
Kevin Kinsey
kdk at daleco.biz
Mon Aug 15 03:25:53 GMT 2005
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
More information about the freebsd-questions
mailing list