From owner-freebsd-hackers@FreeBSD.ORG Fri May 16 19:22:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D834106564A for ; Fri, 16 May 2008 19:22:00 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id D5D028FC0A for ; Fri, 16 May 2008 19:21:59 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 22766 invoked by uid 1001); 16 May 2008 15:22:26 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Fri, 16 May 2008 15:22:25 -0400 Date: Fri, 16 May 2008 15:22:25 -0400 To: Mark Foster Message-ID: <20080516152225.75d97deb@bhuda.mired.org> In-Reply-To: <482DDA1E.2030208@foster.cc> References: <482DCBEA.3030107@foster.cc> <20080516143917.5246a733@bhuda.mired.org> <482DDA1E.2030208@foster.cc> Organization: Meyer Consulting X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: [Fwd: lwresd howto] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 19:22:00 -0000 On Fri, 16 May 2008 12:01:50 -0700 Mark Foster wrote: > Mike Meyer wrote: > > What makes you think dnsmasq doesn't cache? The documentation says > > otherwise (second paragraph of the man page): > > > > Dnsmasq accepts DNS queries and either answers them from a small, > > local, cache or forwards them to a real, recursive, DNS server. It > > > > it has quite a few options to control caching behavior, and certainly > > seems to cache for me. > > > > > Thanks for pointing out my error. > I have no problem using dnsmasq if that is the best recommendation, in > fact I quite like it but am not fond of djbdns. I wanted a cooperating dhcp & dns server, and having them in one package is to big a win to ignore. > However lwresd *is* in the base install vs. dnsmasq which is a port, so > would like to use lwresd if possible (or something else in base like > cached). There is nothing I find in the man page, handbook or google > that says I shouldn't or can't use lwresd, only hints that I can, yet > with no clear working real-world examples. > > So I'm really hoping for two answers. > 1. Can lwresd be used (somehow) or not lwresd isn't a dns server. I suspect it's in the base system because it comes bundled with bind, rather than because it's used itself, as there's no hook to start it in /etc/rc or /etc/defaults. > 2. What are the viable/best alternatives to #1 for a caching-only stub > resolver (like nscd on linux) dnsmasq is viable. May not be the best for your needs, but it works great for me. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org