Date: Thu, 03 Jun 2010 17:48:50 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Olivier Nicole <Olivier.Nicole@cs.ait.ac.th> Cc: freebsd-questions@freebsd.org, bogdan@pvp.ro Subject: Re: Issues reinstalling Bind9 on FreeBSD 8.0 Message-ID: <4C07DCF2.7020507@infracaninophile.co.uk> In-Reply-To: <201006031551.o53Fp964055541@banyan.cs.ait.ac.th> References: <AANLkTim7KLLEHloQcQo4dZ8IVaR99d_bhc4aIDLQQCdn@mail.gmail.com> <201006031551.o53Fp964055541@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03/06/2010 16:51:09, Olivier Nicole wrote: >> /etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named > > /etc/rc.d/named ans /usr/sbin/named are not from the ports but from > native FreeBSD distribution. > > Portsx will go into /usr/local/ only. > > So apparently you mixed-up distribution and port, deleted part of one > and part of the other... > > If you have a fresh FreeBSD install, just reinstall it? Also, if you're trying to run one of the bind ports, then you should just use all the default configuration stuff in /etc/namedb (which is really /var/named/etc/namedb) and the rc script /etc/rc.d/named with the binaries installed by the port by putting the following in /etc/rc.conf: named_enable="YES" named_program="/usr/local/sbin/named" named_flags="-c /etc/namedb/named.conf" This is a bit unusual -- most ports install their own startup script in /usr/local/etc/rc.d/ and their own config files under /usr/local/etc or subdirs thereof. One handy hint is to link /usr/local/etc/rndc.conf to /etc/namedb/rndc.conf which helps the rc-script control the named process better. (Or .../rndc.key, depending on how you set things up.) Actually, I believe the various bind ports do this automatically now, but it doesn't hurt to double check. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwH3PIACgkQ8Mjk52CukIwDFQCfQRnuL/eOlV4V6lERkE480+OT J4QAnRHrzd5VWzEKswpR0eUtDa20zTzo =+8Vv -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C07DCF2.7020507>