Balgansuren Batsukh
2009-Jan-26 22:12 UTC
FreeBSD-7.1STABLE w/BIND-9.4.3-P1 start problem followup
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=/var' '--disable-linux-caps' '--with-randomdev=/dev/random' '--disable-openssl-version-check' '--without-openssl' '--with-libxml2=/usr/local' '--with-idn=/usr/local' '--with-libiconv=/usr/local' '--enable-threads' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=i386-portbld-freebsd7.1' 'build_alias=i386-portbld-freebsd7.1' 'CC=cc' 'CFLAGS=-O2 -fno-strict-aliasing -pipe' 'LDFLAGS= -rpath=/usr/lib:/usr/local/lib' 'CXX=c++' 'CXXFLAGS=-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 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="YES" named_program="/usr/local/sbin/named" # path to named, if you want a different one. named_flags="-c named.conf" 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 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
Mark Andrews
2009-Jan-26 22:30 UTC
FreeBSD-7.1STABLE w/BIND-9.4.3-P1 start problem followup
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 foundAs 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
Doug Barton
2009-Jan-27 01:22 UTC
FreeBSD-7.1STABLE w/BIND-9.4.3-P1 start problem followup
Balgansuren Batsukh wrote:> Installed using pkd_add or ports BIND-9.6.0-P1 working fine. > > 1.But seems can't run under chroot well:The default configuration in FreeBSD (using /etc/rc.d/named) will set up the chroot directory, rndc, etc. for you. You can also use this setup for named from the ports, just update named_program in /etc/rc.conf. You will probably want the commented example for named_flags in /etc/defaults/rc.conf in /etc/rc.conf as well. hope this helps, Doug -- This .signature sanitized for your protection
Possibly Parallel Threads
- FreeBSD-7.1STABLE w/BIND-9.4.3-P1 start problem
- general: warning: max open files (3636) is smaller than max sockets (4096)
- rndc: connect failed: 127.0.0.1#953: connection refused
- Package Matrix does not compile in R-devel_2009-01-10
- asterisk1.2 to 1.4 g711a fax