From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 20:45:17 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AB39106564A for ; Fri, 8 Jul 2011 20:45:17 +0000 (UTC) (envelope-from kline@thought.org) Received: from thought.org (plato.thought.org [209.180.213.209]) by mx1.freebsd.org (Postfix) with ESMTP id 76E7E8FC16 for ; Fri, 8 Jul 2011 20:45:17 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 95766E8161D; Fri, 8 Jul 2011 13:45:16 -0700 (PDT) Date: Fri, 8 Jul 2011 13:45:16 -0700 From: Gary Kline To: Doug Hardie Message-ID: <20110708204516.GA26712@thought.org> References: <20110707180041.GA90387@thought.org> <20110708055837.GA21564@thought.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Thought Unlimited. Public service Unix since 1986. Of_Interest: With 24++ years of service to the Unix community. User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List Subject: Re: DNS and file system messed up... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jul 2011 20:45:17 -0000 On Fri, Jul 08, 2011 at 12:25:34AM -0700, Doug Hardie wrote: > Date: Fri, 8 Jul 2011 00:25:34 -0700 > From: Doug Hardie > Subject: Re: DNS and file system messed up... > To: Gary Kline > Cc: FreeBSD Mailing List > X-Mailer: Apple Mail (2.1084) > > > On 7 July 2011, at 22:58, Gary Kline wrote: > > >> Jul 7 10:16:33 ethic named[54366]: none:0: open: /etc/named.conf: file not found > > >> Jul 7 10:17:56 ethic named[54371]: starting BIND 9.3.6-P1 -c /var/named/etc/namedb/named.conf > > The first one that fails is looking for /etc/named.conf. The second one shows its in /var/named/etc/named/named.conf > > > Those are different locations. I suspect you have named_flags setup in rc.conf pointing to /etc/namedb/named.conf rather than the right location. Its also possible that its not set in rc.conf but defaults in either the rc script or /etc/rc.d/named. On my system it appears to default in /etc/rc.d/named. Hm.. i understand most of this. grep -r from /etc found something i've never uderstood. "chroot" stuff. to me, root is always / and root's home is /rrot. I've never dug deeper. here is the named stuff in /etc/defaults dir: named_enable="NO" # Run named, the DNS server (or NO). named_program="/usr/sbin/named" # Path to named, if you want a different one. #named_flags="-c /etc/namedb/named.conf" # Uncomment for named not in /usr/sbin named_pidfile="/var/run/named/pid" # Must set this in named.conf as well named_uid="bind" # User to run named as named_chrootdir="/var/named" # Chroot directory (or "" not to auto-chroot it) named_chroot_autoupdate="YES" # Automatically install/update chrooted # components of named. See /etc/rc.d/named. named_symlink_enable="YES" # Symlink the chrooted pid file in my /etc/rc.conf file are the 3 named lines: named_enable="YES" named_program="/usr/local/sbin/named" named_pidfile="/var/run/named/pid" I dont see anything here that could be messing me up unless by using the default lines, something is going waaay South. Lastly, has the /etc/rc.d/named script changed in the past year or two? thankee -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.org