From owner-freebsd-questions Mon Oct 14 12:14:16 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 1439F37B401 for ; Mon, 14 Oct 2002 12:14:15 -0700 (PDT) Received: from rhadamanth.submonkey.net (pc1-cdif2-4-cust210.cdf.cable.ntl.com [80.4.10.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BD3243E77 for ; Mon, 14 Oct 2002 12:14:14 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by rhadamanth.submonkey.net with local (Exim 4.10) id 181AfL-0004t9-00; Mon, 14 Oct 2002 20:14:11 +0100 Date: Mon, 14 Oct 2002 20:14:11 +0100 From: Ceri Davies To: sroberts@dsl.pipex.com Cc: FreeBSD Questions Subject: Re: Caching namesever in sandbox not resolving local boxes Message-ID: <20021014191411.GA18690@submonkey.net> Mail-Followup-To: Ceri Davies , sroberts@dsl.pipex.com, FreeBSD Questions References: <1034622133.363.34.camel@Demon.vickiandstacey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1034622133.363.34.camel@Demon.vickiandstacey.com> X-message-flag: All your linuxconf-configured redhat are belong to us. User-Agent: Mutt/1.5.1i 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 Mon, Oct 14, 2002 at 08:02:11PM +0100, 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 If these are local machines that aren't registered in the DNS, then that's understandable. > I have the lan box in /etc/hosts and my domain included at the top of > /etc/resolv.conf. nslookup ignores /etc/hosts - it's just for querying nameservers. In /etc/resolv.conf, you should have the IP address of your caching nameserver listed as the first nameserver, otherwise there's not much point in having one. > 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." That's correct, but you probably want your nameserver to be authoritative for you private LAN (i.e., you want a caching nameserver that is also authoritative for your local machines). Therefore you'll need a zone statement for the local machines, plus a corresponding zone file. > So, am I missing something here. I might well be mistaken in my > understanding of exactly *what* a caching nameserver is supposed to do. I think that's the case. A caching nameserver will only query other nameservers, so nobody else is serving DNS for your local machines, then you'll need to. > I'm willing to post my named.conf file and any others that might prove > helpful to anyone willing to help. Not sure what will be of use at this > point, so do let me know, please. Let us know exactly what you want first ;) Ceri -- you can't see when light's so strong you can't see when light is gone To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message