From owner-freebsd-stable@FreeBSD.ORG Tue Jan 27 06:29:54 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A28561065676 for ; Tue, 27 Jan 2009 06:29:54 +0000 (UTC) (envelope-from Mark_Andrews@isc.org) Received: from mx.isc.org (mx.isc.org [IPv6:2001:4f8:0:2::1c]) by mx1.freebsd.org (Postfix) with ESMTP id 845C98FC39 for ; Tue, 27 Jan 2009 06:29:54 +0000 (UTC) (envelope-from Mark_Andrews@isc.org) Received: from farside.isc.org (farside.isc.org [IPv6:2001:4f8:3:bb::5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "farside.isc.org", Issuer "ISC CA" (verified OK)) by mx.isc.org (Postfix) with ESMTPS id A45D511401F; Tue, 27 Jan 2009 06:29:52 +0000 (UTC) (envelope-from Mark_Andrews@isc.org) Received: from drugs.dv.isc.org (drugs.dv.isc.org [IPv6:2001:470:1f00:820:214:22ff:fed9:fbdc]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "drugs.dv.isc.org", Issuer "ISC CA" (not verified)) by farside.isc.org (Postfix) with ESMTP id 0EE51E6064; Tue, 27 Jan 2009 06:29:51 +0000 (UTC) (envelope-from marka@isc.org) Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (8.14.3/8.14.3) with ESMTP id n0R6Tn7Q094859; Tue, 27 Jan 2009 17:29:49 +1100 (EST) (envelope-from marka@drugs.dv.isc.org) Message-Id: <200901270629.n0R6Tn7Q094859@drugs.dv.isc.org> To: Balgansuren Batsukh From: Mark Andrews In-reply-to: Your message of "Tue, 27 Jan 2009 14:12:24 +0800." <006301c98046$392ee350$c701000a@engineer> Date: Tue, 27 Jan 2009 17:29:49 +1100 Sender: Mark_Andrews@isc.org X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mx.isc.org Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD-7.1STABLE w/BIND-9.4.3-P1 start problem followup X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 06:29:55 -0000 In message <006301c98046$392ee350$c701000a@engineer>, "Balgansuren Batsukh" wri tes: > Installed using pkd_add or ports BIND-9.6.0-P1 working fine. > > 1.But seems can't run under chroot well: > ---------------------------------------------------------- > Jan 27 13:54:08 ns named[36447]: starting BIND 9.6.0-P1 -c named.conf -t = > /var/named -u bind > Jan 27 13:54:08 ns named[36447]: built with '--localstatedir=3D/var' = > '--disable-linux-caps' '--with-randomdev=3D/dev/random' = > '--disable-openssl-version-check' '--without-openssl' = > '--with-libxml2=3D/usr/local' '--with-idn=3D/usr/local' = > '--with-libiconv=3D/usr/local' '--enable-threads' = > '--prefix=3D/usr/local' '--mandir=3D/usr/local/man' = > '--infodir=3D/usr/local/info/' '--build=3Di386-portbld-freebsd7.1' = > 'build_alias=3Di386-portbld-freebsd7.1' 'CC=3Dcc' 'CFLAGS=3D-O2 = > -fno-strict-aliasing -pipe' 'LDFLAGS=3D = > -rpath=3D/usr/lib:/usr/local/lib' 'CXX=3Dc++' 'CXXFLAGS=3D-O2 = > -fno-strict-aliasing -pipe' > Jan 27 13:54:08 ns named[36447]: none:0: open: /usr/local/etc/rndc.key: = > file not found > Jan 27 13:54:08 ns named[36447]: couldn't add command channel = > 127.0.0.1#953: file not found As root run "rndc-confgen -a -t /var/named". > Jan 27 13:54:08 ns named[36447]: the working directory is not writable > Jan 27 13:54:08 ns named[36447]: running > > > 2./etc/rc.conf > ------------------- > named_enable=3D"YES" > named_program=3D"/usr/local/sbin/named" # path to named, if you want a = > different one. > named_flags=3D"-c named.conf" > named_uid=3D"bind" # User to run named as > named_chrootdir=3D"/var/named" # Chroot directory (or "" not to = > auto-chroot it) > named_chroot_autoupdate=3D"YES" # Automatically install/update = > chrooted > # components of named. See = > /etc/rc.d/named. > named_symlink_enable=3D"YES" # Symlink the chrooted pid file > > 3./etc/rc./named stop > -------------------------------- > named not running? (check /var/run/named/pid). > > 4.ns# /usr/local/sbin/named -v > BIND 9.6.0-P1 > > Any suggestion to fix some cosmetic problem? > > Balgaa > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews@isc.org