On Fri, Jul 08, 2011 at 07:27:12AM -0600, Dan Busarow wrote: > Date: Fri, 8 Jul 2011 07:27:12 -0600 > From: Dan Busarow <d...@buildingonline.com> > Subject: Re: DNS and file system messed up... > To: firstname.lastname@example.org > X-Mailer: Apple Mail (2.753.1) > > > 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: none:0: open: /etc/named.conf: > >>>>>>file not found > >>>>>>Jul 7 10:17:56 ethic named: 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 >
Dan! I think you fixed something. I haven't figured this out yet, and would be grateful if you could decode this in /var/log/messages:: Jul 8 20:39:32 ethic named: stopping command channel on ::1#953 Jul 8 20:39:32 ethic named: exiting Jul 8 20:39:37 ethic named: starting BIND 9.3.6-P1 -c /etc/namedb/named.conf -t /var/named -u bind Jul 8 20:39:37 ethic named: none:0: open: /etc/rndc.key: file not found Jul 8 20:39:37 ethic named: couldn't add command channel 127.0.0.1#953: file not found Jul 8 20:39:37 ethic named: none:0: open: /etc/rndc.key: file not found Jul 8 20:39:37 ethic named: couldn't add command channel ::1#953: file not found Jul 8 20:39:37 ethic named: the working directory is not writable Jul 8 20:39:37 ethic named: running This, after I added your named_flags line into /etc/rc.conf. Where I get lost is *what* gives me that "none:0" lines?? I see the same or worse err when I drop in bind98. IIRC, named does run, but the messages log is fulll of rndc.key error messages that I just cannot understand. _Now_, having dropped in your named_flags line, I am seeing something similar. I haved grepped thru the entire /etc/ tree and haven't found anything that explains where I messed up.... Ideas? thanks to you or anybody else onlist. gary > > > > 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: matt...@infracaninophile.co.uk Kent, CT11 9PW > > > > _______________________________________________ > email@example.com mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" -- Gary Kline kl...@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 _______________________________________________ firstname.lastname@example.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"