Date: 15 Aug 2005 14:42:42 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: garys@opusnet.com (Gary W. Swearingen) Cc: questions@freebsd.org Subject: Re: cache-only named won't resolve "localhost" Message-ID: <448xz36nz1.fsf@be-well.ilk.org> In-Reply-To: <mnwtmnxlrz.tmn@mail.opusnet.com> References: <4w1x4wyqkl.x4w@mail.opusnet.com> <43000B38.8040002@daleco.biz> <mnwtmnxlrz.tmn@mail.opusnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
garys@opusnet.com (Gary W. Swearingen) writes: > Kevin Kinsey <kdk@daleco.biz> writes: > > > Did you `sh /var/named/etc/namedb/make-localhost` ? > > Yup, but that only handles the reverse translation (which works OK) > and, of course, doesn't handle other stuff I might have in "/etc/hosts". > > I also have in /etc/nsswitch.conf: > hosts: files dns > > so I'd think domain resolution should look in /etc/hosts before > even checking my cache-only named. Which it seems to do for "ping", > but not for "host", "nslookup", or "mozilla". Of course it won't work for nslookup(1); it's not supposed to. nslookup is specifically intended for querying a name server. The documentation for host(1) isn't as clear on the subject, but my reading of it seems to indicate the same thing. So why it isn't working for mozilla is the only anomaly you are seeing. What is the syntax you are using for pointing mozilla at your localhost, and what are the precise results?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?448xz36nz1.fsf>