Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 May 2008 11:01:14 -0700
From:      Mark Foster <mark@foster.cc>
To:        freebsd-hackers@freebsd.org
Subject:   [Fwd: lwresd howto]
Message-ID:  <482DCBEA.3030107@foster.cc>

next in thread | raw e-mail | index | archive | help
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 <mark@foster.cc>  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 <mark@foster.cc>
User-Agent: Thunderbird 2.0.0.14 (X11/20080505)
MIME-Version: 1.0
To: User Questions <freebsd-questions@freebsd.org>
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 <mark@foster.cc>  http://mark.foster.cc/




--------------010805070901070408070408--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?482DCBEA.3030107>