Subject: Re: djbdns/dnscache extgernal IP
To: None <>
From: Amitai Schlair <>
List: pkgsrc-users
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 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:> is accurate from step 6

- Amitai