From owner-freebsd-questions@FreeBSD.ORG Fri Jul 8 14:03:15 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 445C71065670 for ; Fri, 8 Jul 2011 14:03:15 +0000 (UTC) (envelope-from dan@buildingonline.com) Received: from capistrano.beach.net (ns.beach.net [12.130.64.129]) by mx1.freebsd.org (Postfix) with ESMTP id 1055D8FC0A for ; Fri, 8 Jul 2011 14:03:14 +0000 (UTC) Received: from [192.168.1.227] (host114.beach.net [206.127.77.114]) by capistrano.beach.net (8.14.3/8.14.3) with ESMTP id p68DRC4I098875 for ; Fri, 8 Jul 2011 06:27:13 -0700 (PDT) (envelope-from dan@buildingonline.com) Mime-Version: 1.0 (Apple Message framework v753.1) In-Reply-To: <4E16C779.6000607@infracaninophile.co.uk> References: <20110707180041.GA90387@thought.org> <20110708055837.GA21564@thought.org> <4E16C779.6000607@infracaninophile.co.uk> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2A8AFE06-FC2C-4FCC-A4B1-4FEE8689E958@buildingonline.com> Content-Transfer-Encoding: 7bit From: Dan Busarow Date: Fri, 8 Jul 2011 07:27:12 -0600 To: freebsd-questions@freebsd.org X-Mailer: Apple Mail (2.753.1) 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 14:03:15 -0000 On Jul 8, 2011, at 3:01 AM, Matthew Seaman wrote: > 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: > > % 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. Actually /etc/named.conf is NOT the same as /etc/namedb/named.conf ergo it is not the same as /var/named/etc/ namedb/named.conf Gary, add named_flags="-c /etc/namedb/named.conf" to /etc/rc.conf. Or change /etc/namedb/named.conf to the /var version if you like/there is no symlink. Dan > 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') > > 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. > > 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 >