bind9

Doug Barton dougb at FreeBSD.org
Sun Jan 8 22:17:38 PST 2006


Mike Jakubik wrote:
> I s anyone running bind9 on FreeBSD 4?

Yes, I am.

> If so, could someone tell me how 
> they are doing so? Where are the config and environment files kept? 

There are no environment variables. You have several choices in terms of 
config. If you choose the WITH_PORT_REPLACES_BASE_BIND9 option, the binaries 
will all look for their configs by default in /etc/namedb, as well as 
overwriting the stuff in /usr. (You should add the NO_BIND option to 
/etc/make.conf if you choose to do this.)

If you prefer to install the port under PREFIX, that's fine too. By default 
it will look for its config in /usr/local/etc, but you can override that 
location with a -c command line.

> Also, i cant seem to find any startup script for it.

There was life before rc.d you know. :) All you have to do is put the right 
variables in /etc/rc.conf[.local] and it will start at boot. I have the 
following:

syslogd_flags="-ssv -l /var/named/dev/log"
named_enable="yes"
named_program="/usr/local/sbin/named"
named_flags="-u bind -t /var/named -c /etc/namedb/named.conf"

Obviously I have it chrooted in /var/named, just like it is on RELENG_5 and 
later. Whatever directory you put the config files in, make sure that you 
have the corresponding "directory" entry in named.conf, otherwise you run 
the risk of rndc (or even named) getting confused.

hth,

Doug

-- 

     This .signature sanitized for your protection



More information about the freebsd-ports mailing list