From owner-freebsd-ports@FreeBSD.ORG Mon Jan 9 06:17:38 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA87416A41F for ; Mon, 9 Jan 2006 06:17:38 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 4506743D45 for ; Mon, 9 Jan 2006 06:17:38 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 23919 invoked by uid 399); 9 Jan 2006 06:17:37 -0000 Received: from localhost (HELO ?192.168.1.100?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 9 Jan 2006 06:17:37 -0000 Message-ID: <43C1FFFF.30509@FreeBSD.org> Date: Sun, 08 Jan 2006 22:17:35 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051226) MIME-Version: 1.0 To: Mike Jakubik References: <43C1C6AA.8070600@rogers.com> In-Reply-To: <43C1C6AA.8070600@rogers.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: bind9 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jan 2006 06:17:38 -0000 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