Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jan 2006 22:17:35 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Mike Jakubik <mikej@rogers.com>
Cc:        ports@freebsd.org
Subject:   Re: bind9
Message-ID:  <43C1FFFF.30509@FreeBSD.org>
In-Reply-To: <43C1C6AA.8070600@rogers.com>
References:  <43C1C6AA.8070600@rogers.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C1FFFF.30509>