Date: Fri, 8 Jul 2011 13:45:16 -0700 From: Gary Kline <kline@thought.org> To: Doug Hardie <bc979@lafn.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: DNS and file system messed up... Message-ID: <20110708204516.GA26712@thought.org> In-Reply-To: <CDA23F69-BA47-4D83-856E-1DE15F135243@lafn.org> References: <20110707180041.GA90387@thought.org> <20110708055837.GA21564@thought.org> <CDA23F69-BA47-4D83-856E-1DE15F135243@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bc979@lafn.org> > Subject: Re: DNS and file system messed up... > To: Gary Kline <kline@thought.org> > Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110708204516.GA26712>