From owner-freebsd-questions Mon Oct 14 12: 9: 1 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4506B37B401 for ; Mon, 14 Oct 2002 12:09:00 -0700 (PDT) Received: from skywalker.rogness.net (skywalker.rogness.net [64.251.173.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 787BC43E97 for ; Mon, 14 Oct 2002 12:08:59 -0700 (PDT) (envelope-from nick@rogness.net) Received: from skywalker.rogness.net (localhost [127.0.0.1]) by skywalker.rogness.net (8.12.5/8.12.5) with ESMTP id g9EJCr0H013056; Mon, 14 Oct 2002 13:12:53 -0600 (MDT) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by skywalker.rogness.net (8.12.5/8.12.5/Submit) with ESMTP id g9EJCri3013053; Mon, 14 Oct 2002 13:12:53 -0600 (MDT) X-Authentication-Warning: skywalker.rogness.net: nick owned process doing -bs Date: Mon, 14 Oct 2002 13:12:51 -0600 (MDT) From: Nick Rogness To: sroberts@dsl.pipex.com Cc: FreeBSD Questions Subject: Re: Caching namesever in sandbox not resolving local boxes In-Reply-To: <1034622133.363.34.camel@Demon.vickiandstacey.com> Message-ID: <20021014130805.J12792-100000@skywalker.rogness.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 14 Oct 2002, Stacey Roberts wrote: > Hi, > I thought I had this one licked, but I may have ommited some step that > I'd like to get some info on, please. > > I've got named configured as a caching nameserver in a sandbox on my > gateway as per the Handbook. However when I run nslookup on other > machines on my network, I get this: > # nslookup > Server: > Address: upstream NS IP> > > *** can't find : Non-existent host/domain > # > > I have the lan box in /etc/hosts and my domain included at the top of > /etc/resolv.conf. Your /etc/resolv.conf should be: search domain.com nameserver 127.0.0.1 > > I'm thinking that I can't resolve any other hosts on my network because > I've not got entries for them in a zone file, but then the handbook says > that to create a caching nameserver: > > "A caching name server is a name server that is not authoritative for > any zones. It simply asks queries of its own, and remembers them for > later use. To set one up, just configure the name server as usual, > omitting any inclusions of zones." > > So, am I missing something here. I might well be mistaken in my > understanding of exactly *what* a caching nameserver is supposed to do. > Yes, to have your local names resolve via nslookup you need to create a zone and add your local hosts in that zone. At that point, your nameserver is no longer a caching-only nameserver. Nick Rogness - "Wouldn't it be great if we could answer people with a kick to the crotch?" -maddox@xmission.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message