From owner-freebsd-questions Mon Jan 27 14:22:17 2003 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 2B43337B401 for ; Mon, 27 Jan 2003 14:22:15 -0800 (PST) Received: from shockwave.systems.pipex.net (shockwave.systems.pipex.net [62.241.160.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6344343F75 for ; Mon, 27 Jan 2003 14:22:14 -0800 (PST) (envelope-from stacey@vickiandstacey.com) Received: from [192.168.1.8] (81-86-129-77.dsl.pipex.com [81.86.129.77]) by shockwave.systems.pipex.net (Postfix) with ESMTP id 245171600B6EF for ; Mon, 27 Jan 2003 22:22:11 +0000 (GMT) Subject: Re: Caching nameserver question - I need a spot here . . . From: Stacey Roberts Reply-To: stacey@vickiandstacey.com To: FreeBSD Questions In-Reply-To: <20030127221529.GB36301@keyslapper.org> References: <20030127221529.GB36301@keyslapper.org> Content-Type: text/plain Organization: Message-Id: <1043706135.13652.101.camel@localhost> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 27 Jan 2003 22:22:15 +0000 Content-Transfer-Encoding: 7bit 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 Hi Louis, On Mon, 2003-01-27 at 22:15, Louis LeBlanc wrote: > Hey all. I'm finally getting around to setting up a caching dns > server. Pretty confusing from my angle. > > Here's what I have so far: > named enaabled in /etc/rc.conf > cd to /etc/namedb and run sh make-localhost > > and the following in /etc/namedb/named.conf: > > options { > directory "/etc/namedb"; > forward first; > forwarders { > 151.203.0.84; > 151.202.0.84; > }; > listen-on { 10.8.20.5; }; > version "surely you must be joking" > query-source address * port 53; > }; > > > zone "." { > type hint; > file "named.root"; > }; > > zone "0.0.127.IN-ADDR.ARPA" { > type master; > file "localhost.rev"; > }; > > > 10.8.20.5 is the interface to the internal network, and I'm hoping the > listen-on statement above will restrict requests to the internal > network - And from the local machine if I simply add that IP to > /etc/resolv.conf. The IPs in the forwarders block are my ISPs dns > servers. > > Anyone care to point out my mistakes so I don't go making an ass of > myself by turning on named with a broken config? I once had a similar set up as what you've described as your intention here. I'll not critique what you've done, but I'll point you to the handbook, which has a complete section on DNS and mentions what needs to be done to set up a basic caching nameserver - its here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/dns.html Hope this assists in some way. Lots of luck! Regards, Stacey > > Thanks in advance. > Lou -- Stacey Roberts B.Sc (HONS) Computer Science Web: www.vickiandstacey.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message