From owner-freebsd-hackers@FreeBSD.ORG Fri May 16 18:18:35 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 77B791065676 for ; Fri, 16 May 2008 18:18:35 +0000 (UTC) (envelope-from mark@foster.cc) Received: from mail.bitpusher.com (mail.bitpusher.com [208.75.56.13]) by mx1.freebsd.org (Postfix) with ESMTP id 56E138FC0A for ; Fri, 16 May 2008 18:18:35 +0000 (UTC) (envelope-from mark@foster.cc) Received: from [192.168.1.108] (dsl-242-83.zhonka.net [208.64.242.83]) by mail.bitpusher.com (Postfix) with ESMTP id 6BC244C135 for ; Fri, 16 May 2008 11:01:13 -0700 (PDT) Message-ID: <482DCBEA.3030107@foster.cc> Date: Fri, 16 May 2008 11:01:14 -0700 From: Mark Foster User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary="------------010805070901070408070408" Subject: [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 18:18:35 -0000 This is a multi-part message in MIME format. --------------010805070901070408070408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit No response from -questions, trying here. The gist is: is implementing lwresd feasible as a caching-only stub resolver? I need something I can run locally to intercept and cache DNS responses. BIND is not the answer (too heavyweight) and dnsmasq doesn't appear to cache. nscd is what I'm used to on Linux but it doesn't seem to be in FreeBSD. Something called cached but I don't see it on the systems I'm working with (5.4, 6.1, 6.2 yea I know out-of-date so don't even say it). Can I use lwresd ? The documentation for how to do so are unclear. I've found: http://www.isc.org/sw/bind/arm93/Bv9ARM.ch05.html and reviewed the lwresd(8) man page but there is not a good example of how to setup correctly. Also the ISC doc describes putting lwserver entries into resolv.conf but these are not mentioned in resolver(5). I do not see the hooks around for nsswitch.conf e.g. to put lwres in the hosts: line would have no effect because something like nss_lwres does not exist for FreeBSD. -- Some days it's just not worth chewing through the restraints... Mark D. Foster, CISSP http://mark.foster.cc/ --------------010805070901070408070408 Content-Type: message/rfc822; name="lwresd howto.eml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="lwresd howto.eml" Message-ID: <482B4FA0.8090800@foster.cc> Date: Wed, 14 May 2008 13:46:24 -0700 From: Mark Foster User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: User Questions Subject: lwresd howto Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I need something I can run locally to intercept and cache DNS responses. BIND is not the answer (too heavyweight) and dnsmasq doesn't appear to cache. nscd is what I'm used to on Linux but it doesn't seem to be in FreeBSD. Something called cached but I don't see it on the systems I'm working with (5.4, 6.1, 6.2 yea I know out-of-date so don't even say it). So I am considering lwresd(8) Can I use lwresd ? The documentation for how to do so are unclear. I've found: http://www.isc.org/sw/bind/arm93/Bv9ARM.ch05.html and reviewed the lwresd(8) man page but there is not a good example of how to setup correctly. Also the ISC doc mention putting lwserver entries into resolv.conf but these are not mentioned in resolver(5). I have tried putting lwserver 127.0.0.1 and nameserver 127.0.0.1 while running lwresd but not getting response. Does some kind soul have this working and can provide some example or advice? -- Some days it's just not worth chewing through the restraints... Mark D. Foster, CISSP http://mark.foster.cc/ --------------010805070901070408070408--