Date: Mon, 14 Oct 2002 20:14:11 +0100 From: Ceri Davies <setantae@submonkey.net> To: sroberts@dsl.pipex.com Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Caching namesever in sandbox not resolving local boxes Message-ID: <20021014191411.GA18690@submonkey.net> In-Reply-To: <1034622133.363.34.camel@Demon.vickiandstacey.com> References: <1034622133.363.34.camel@Demon.vickiandstacey.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <lan box> > Server: <upstream NS> > Address: upstream NS IP> > > *** <upstream NS> can't find <lan box>: 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021014191411.GA18690>