Date: Mon, 15 Aug 2005 13:10:11 -0700 From: garys@opusnet.com (Gary W. Swearingen) To: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> Cc: questions@freebsd.org Subject: Re: cache-only named won't resolve "localhost" Message-ID: <9r4q9rx8po.q9r@mail.opusnet.com> In-Reply-To: <448xz36nz1.fsf@be-well.ilk.org> (Lowell Gilbert's message of "15 Aug 2005 14:42:42 -0400") References: <4w1x4wyqkl.x4w@mail.opusnet.com> <43000B38.8040002@daleco.biz> <mnwtmnxlrz.tmn@mail.opusnet.com> <448xz36nz1.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> writes: > 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. Well that sure explains something. But I was also looking at the "bind" docs thinking it should be able to read /etc/hosts or call the name server host's resolver ("gethostbyname", etc.), but didn't find anything, I suppose because someone thinks it is a bad idea since the resolver library is supposed to look at both databases. I'm still wondering if I should be declaring a forward zone for "localhost" or "localhost.localhost"; it seems kinda strange that the script would set up a reverse for it, but say nothing about the forward. I'm also wondering now what "host"-type command just queries the resolver. But I guess "ping" works well enough. > 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? I've tried: localhost/index.html localhost.localhost/index.html (getting desparate:) localhost:80/index.html http://localhost/index.html This worked immediately: 127.0.0.1/index.html The bad Mozilla results are a status line saying "Connecting to <something>..." and, IIRC, I saw a twirly thing until it times out after several minutes, with no error message. I didn't see anything related to DNS in "preferences".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9r4q9rx8po.q9r>