From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 22:04:54 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 7051C106566C for ; Fri, 8 Jul 2011 22:04:54 +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 38DCB8FC0C for ; Fri, 8 Jul 2011 22:04:53 +0000 (UTC) Received: by thought.org (Postfix, from userid 1001) id 1FC57E80681; Fri, 8 Jul 2011 15:04:53 -0700 (PDT) Date: Fri, 8 Jul 2011 15:04:52 -0700 From: Gary Kline To: Matthew Seaman Message-ID: <20110708220452.GB26712@thought.org> References: <20110707180041.GA90387@thought.org> <20110708055837.GA21564@thought.org> <4E16C779.6000607@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E16C779.6000607@infracaninophile.co.uk> 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-questions@freebsd.org 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 22:04:54 -0000 On Fri, Jul 08, 2011 at 10:01:45AM +0100, Matthew Seaman wrote: > Date: Fri, 08 Jul 2011 10:01:45 +0100 > From: Matthew Seaman > Subject: Re: DNS and file system messed up... > To: freebsd-questions@freebsd.org > > On 08/07/2011 08:25, Doug Hardie wrote: > > 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. > > FreeBSD defaults to running named chrooted. /etc/namedb is actually a > symbolic link: hi matthew, i found an in-depth post you wrote re mtree yesterday ( 07july ), but i figured it was over my head in resetting anything i might need to reset. i was going to write you offlist. decided to ask the entire list. > > % ls -la /etc/namedb > lrwxr-xr-x 1 root wheel 21 Jul 6 06:24 /etc/namedb@ -> > /var/named/etc/namedb > > so the files referenced are in fact exactly the same file. However, the > flags from the log extract don't look like the defaults to me. (I'm > running the dns/bind98 port, and the equivalent info from the log line > is '-t /var/named -u bind') i was using bind98 rather than the earlier bind9 which is out of date. but bind98 gave me troubles with the rndc.key and other, so i chose to go back with what worked. --first thing is to get this working with the older bind9. FWIW, both bind9's given me the same error and failure. i have walked thru the named script to the point where it creates the symlink. regardless, i cannot understand the error and failure messages. i only know that my kill -9 and my initialization "by hand" work. > > Gary, what named related settings do you have in /etc/rc.conf? You > almost certainly don't need anything more than: > > named_enable="YES" > > and perhaps > > syslogd_flags="-ss -l /var/named/var/run/log" > > so named can log to the system syslog. Hmmm [&c]. as you may have seen in my post to Doug H. i only have -- named_enable="YES" named_program="/usr/local/sbin/named" named_pidfile="/var/run/named/pid" > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matthew@infracaninophile.co.uk Kent, CT11 9PW > -- 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