Subject: Re: djbdns/dnscache extgernal IP
To: None <email@example.com>
From: Amitai Schlair <firstname.lastname@example.org>
Date: 08/30/2007 14:27:47
Gergo Szakal wrote:
> So, I would like to set a listen IP for dnscache that is
> different than 127.0.0.1. I tried editing /usr/pkg/etc/dnscache/env/IP
> accordingly but no success. I also renamed the aforementioned directory
> and created one with dnscache-conf but no success. I would like to use
> this as a caching DNS server for a certain subnet.
You're right that the djbdns-run package sets up services differently
from DJB's recommendations. It's fine to ask here about how we do things
(or the address in /usr/pkg/share/doc/djbdns-run/README.pkgsrc).
Take a look at /etc/rc.d/dnscache, the djbdns-run script responsible for
controlling dnscache. Near the top, there's a section entitled
"User-settable rc.conf variables and their default values" that might
give you some ideas. In this particular case, setting dnscache_ip in
/etc/rc.conf and restarting dnscache should do what you want.
<URL:http://cr.yp.to/djbdns/run-cache-x.html> is accurate from step 6