DNS and file system messed up...

Gary Kline kline at thought.org
Fri Jul 8 20:45:17 UTC 2011

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 at lafn.org>
> Subject: Re: DNS and file system messed up...
> To: Gary Kline <kline at thought.org>
> Cc: FreeBSD Mailing List <freebsd-questions at 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:


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


 Gary Kline  kline at 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

More information about the freebsd-questions mailing list