From owner-freebsd-questions@FreeBSD.ORG Wed Feb 20 13:17:06 2008 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 EF6B816A404 for ; Wed, 20 Feb 2008 13:17:06 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id A1E1C13C4DB for ; Wed, 20 Feb 2008 13:17:06 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 20 Feb 2008 08:17:05 -0500 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.8.6-GA) with ESMTP id OLD40789; Wed, 20 Feb 2008 08:17:04 -0500 (EST) Received: from 209-6-22-188.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.188]) by smtp01.lnh.mail.rcn.net with ESMTP; 20 Feb 2008 08:16:00 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18364.10350.642689.920407@jerusalem.litteratus.org> Date: Wed, 20 Feb 2008 08:17:34 -0500 To: Ruben de Groot In-Reply-To: <20080220103358.GA14370@ei.bzerk.org> References: <20080220103358.GA14370@ei.bzerk.org> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr02.lnh.mail.rcn.net) Cc: Deian Popov , freebsd-questions@freebsd.org Subject: Re: DNS /etc/namedb owner hell 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: Wed, 20 Feb 2008 13:17:07 -0000 Ruben de Groot writes: > > I have the following problem with bind: > > > > it is configured to run as bind:bind and after every reboot of the system > > all files and directories under /etc/namedb become owned by root:wheel so > > bind is unable is unable to update it's zone files after dhcpd leases IP to > > any given client. How to fix either owner, or set somewhere that the owner > > of this folder, subfolder and files is my DNS server? > > Try setting named_chroot_autoupdate to NO in your rc.conf Does this still work if you don't run chrooted? To the OP: does this happen every reboot, or when you update the system? I used to have tha latter problem, and fixed it by adding NO_BIND_ETC= true # Do not install files to /etc/namedb to /etc/make.conf. Upsides: no permission mangling, and no automatic file update. Downside: no automatic file update, though you can deal with this using mergeaster. Robert Huff